Bird
0
0

How does increasing the linger.ms setting in Kafka producer configuration indirectly affect batch size?

easy📝 Conceptual Q1 of 15
Kafka - Performance Tuning
How does increasing the linger.ms setting in Kafka producer configuration indirectly affect batch size?
AIt forces immediate sending of each message
BIt decreases the maximum batch size allowed
CIt disables batching entirely
DIt allows more time to accumulate messages, potentially increasing batch size
Step-by-Step Solution
Solution:
  1. Step 1: Understand linger.ms

    This setting controls how long the producer waits before sending a batch.
  2. Step 2: Effect on batch size

    By waiting longer, more messages can accumulate, increasing the batch size up to the configured batch.size.
  3. Final Answer:

    It allows more time to accumulate messages, potentially increasing batch size -> Option D
  4. Quick Check:

    linger.ms increases wait time, so batch size can grow [OK]
Quick Trick: Longer linger.ms means bigger batches [OK]
Common Mistakes:
  • Confusing linger.ms with batch.size directly
  • Assuming linger.ms disables batching
  • Thinking linger.ms reduces batch size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes