CCDAK · Question #145
Your producer is producing at a very high rate and the batches are completely full each time. How can you improve the producer throughput? (select two)
The correct answer is A. Enable compression C. Increase batch.size. batch.size controls how many bytes of data to collect before sending messages to the Kafka broker. Set this as high as possible, without exceeding available memory. Enabling compression can also help make more compact batches and increase the throughput of your producer…
Question
Your producer is producing at a very high rate and the batches are completely full each time. How can you improve the producer throughput? (select two)
Options
- AEnable compression
- BDisable compression
- CIncrease batch.size
- DDecrease batch.size
- EDecrease linger.ms
- FIncrease linger.ms
How the community answered
(52 responses)- A71% (37)
- B4% (2)
- D8% (4)
- E2% (1)
- F15% (8)
Explanation
batch.size controls how many bytes of data to collect before sending messages to the Kafka broker. Set this as high as possible, without exceeding available memory. Enabling compression can also help make more compact batches and increase the throughput of your producer. Linger.ms will have no effect as the batches are already full.
Topics
Community Discussion
No community discussion yet for this question.