CCAAK · Question #18
You want to increase producer throughput for messages sent to your Kafka cluster by tuning the properties 'batch.size' and 'linger.ms'. According to best practices, what should you do?
The correct answer is D. Increase 'batch.size' and increase 'linger.ms'. Larger batches allow producers to send more data per request, and increasing linger time gives the producer more opportunity to accumulate records into each batch. Together, these settings improve throughput by maximizing batch efficiency before sending data to the broker.
Question
You want to increase producer throughput for messages sent to your Kafka cluster by tuning the properties 'batch.size' and '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
(32 responses)- A6% (2)
- B3% (1)
- C16% (5)
- D75% (24)
Explanation
Larger batches allow producers to send more data per request, and increasing linger time gives the producer more opportunity to accumulate records into each batch. Together, these settings improve throughput by maximizing batch efficiency before sending data to the broker.
Topics
Community Discussion
No community discussion yet for this question.