Bird
0
0

Why do Kafka consumers process messages instead of brokers pushing messages directly to them?

hard📝 Conceptual Q10 of 15
Kafka - Consumers
Why do Kafka consumers process messages instead of brokers pushing messages directly to them?
AConsumers pull messages to control processing rate and handle backpressure
BBrokers cannot send messages due to network restrictions
CConsumers push acknowledgments before receiving messages
DBrokers only store messages and never interact with consumers
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka's pull model

    Kafka uses a pull model where consumers request messages to control flow and avoid overload.
  2. Step 2: Reason about backpressure handling

    Pulling allows consumers to process at their own pace, preventing message loss or crashes.
  3. Final Answer:

    Consumers pull messages to control processing rate and handle backpressure -> Option A
  4. Quick Check:

    Pull model controls flow and backpressure [OK]
Quick Trick: Consumers pull to manage processing speed and avoid overload [OK]
Common Mistakes:
  • Thinking brokers push messages automatically
  • Believing network blocks broker-consumer communication
  • Confusing push and pull roles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes