CCAAK · Question #1
You want to increase Producer throughput for the messages it sends to your Kafka cluster by tuning the batch size ('batch size') and the time the Producer waits before sending a batch ('linger.ms')…
The correct answer is D. Increase 'batch.size' and increase 'linger.ms'. Increasing batch.size allows the producer to accumulate more messages into a single batch, improving compression and reducing the number of requests sent to the broker. Increasing linger.ms gives the producer more time to fill up batches before sending them, which improves…
Question
You want to increase Producer throughput for the messages it sends to your Kafka cluster by tuning the batch size (‘batch size’) and the time the Producer waits before sending a batch (‘linger.ms’). According to best practices, what should you do?
Options
- ADecrease 'batch.size' and decrease 'linger.ms'
- BDecrease 'batch.size' and increase 'linger.ms'
- CIncrease 'batch.size' and decrease 'linger.ms'
- DIncrease 'batch.size' and increase 'linger.ms'
How the community answered
(46 responses)- A7% (3)
- B13% (6)
- C4% (2)
- D76% (35)
Explanation
Increasing batch.size allows the producer to accumulate more messages into a single batch, improving compression and reducing the number of requests sent to the broker. Increasing linger.ms gives the producer more time to fill up batches before sending them, which improves batching efficiency and throughput. This combination is a best practice for maximizing throughput, especially when message volume is high or consistent latency is not a strict requirement.
Topics
Community Discussion
No community discussion yet for this question.