Bird
0
0

A Kafka consumer is not receiving messages even though the producer is sending them. What could be a common mistake?

medium📝 Debug Q7 of 15
Kafka - Basics and Event Streaming
A Kafka consumer is not receiving messages even though the producer is sending them. What could be a common mistake?
AConsumer subscribed to the wrong topic name
BProducer is sending messages to the correct topic
CKafka broker is running properly
DConsumer has a valid group ID
Step-by-Step Solution
Solution:
  1. Step 1: Check consumer subscription

    If consumer subscribes to a wrong topic, it won't receive messages.
  2. Step 2: Verify other components

    Producer sending correctly, broker running, and valid group ID are necessary but not sufficient if topic name is wrong.
  3. Final Answer:

    Consumer subscribed to the wrong topic name -> Option A
  4. Quick Check:

    Wrong topic subscription = No messages received [OK]
Quick Trick: Always verify consumer topic subscription matches producer topic [OK]
Common Mistakes:
  • Assuming producer or broker is always at fault
  • Ignoring topic name case sensitivity
  • Overlooking consumer group configuration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes