Bird
0
0

Which Kafka producer configuration controls how long the producer waits before sending a batch, even if the batch is not full?

easy📝 Conceptual Q2 of 15
Kafka - Producers
Which Kafka producer configuration controls how long the producer waits before sending a batch, even if the batch is not full?
Abatch.size
Blinger.ms
Cmax.in.flight.requests.per.connection
Dacks
Step-by-Step Solution
Solution:
  1. Step 1: Identify linger.ms purpose

    linger.ms sets the maximum time the producer waits before sending a batch, allowing more messages to accumulate.
  2. Step 2: Exclude other options

    batch.size controls batch size, acks controls acknowledgment, and max.in.flight.requests.per.connection controls request concurrency.
  3. Final Answer:

    linger.ms -> Option B
  4. Quick Check:

    linger.ms = wait time before send [OK]
Quick Trick: linger.ms sets max wait time before sending batch [OK]
Common Mistakes:
  • Confusing linger.ms with batch.size
  • Thinking acks controls batching timing
  • Mixing max.in.flight.requests with linger.ms

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes