Kafka sends a Batch as soon as batch.size of bytes is collected or linger.ms time has passed.
Then how come there can be multiple Batches in a single request? Does it mean that when Kafka is ready to send a Batch for one partition, Batches for other partitions would be closed and sent in the same request?
Doesn't it affect compression efficiency for the Batches that were not closed by batch.size or linger.ms ?