Consumer and Consumer Groups
This lesson explains the concepts of consumers and consumer groups in Kafka.
We'll cover the following...
Consumers, or readers, receive messages from Kafka topics. The class that represents the consumer concept is KafkaConsumer
. Consumers subscribe to topics, then receive messages that producers write to a topic. Typically, each consumer belongs to a consumer group. A single producer or multiple producers may write messages to a topic faster than a single consumer can read them, causing the consumer ...