Bird
0
0

You want to optimize Kafka for a high-throughput system with many small messages. Which tuning approach helps most?

hard📝 Application Q8 of 15
Kafka - Performance Tuning
You want to optimize Kafka for a high-throughput system with many small messages. Which tuning approach helps most?
AIncrease <code>batch.size</code> and <code>linger.ms</code> to batch small messages
BDecrease <code>batch.size</code> and set <code>linger.ms</code> to zero
CDisable batching and send messages immediately
DIncrease <code>fetch.min.bytes</code> to delay consumer fetches
Step-by-Step Solution
Solution:
  1. Step 1: Understand batching small messages

    Small messages benefit from batching to reduce network overhead.
  2. Step 2: Use batch.size and linger.ms to batch

    Increasing batch.size allows bigger batches; linger.ms adds delay to gather messages.
  3. Final Answer:

    Increase batch.size and linger.ms to batch small messages -> Option A
  4. Quick Check:

    Batching small messages = B [OK]
Quick Trick: Batch small messages by increasing batch.size and linger.ms [OK]
Common Mistakes:
  • Setting linger.ms to zero disables batching
  • Decreasing batch.size reduces batch efficiency
  • Delaying consumer fetches doesn't help producer throughput

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes