Consuming Kafka Messages with Multiple Consumer Groups
In this hands-on lab, we will have the opportunity to consume data from a Kafka topic using multiple consumers groups. One of these groups will have a single consumer, and the other will have two consumers. Going through this will provide a firsthand look at how different consumers and consumer groups handle messages in Kafka. Additionally, Kafka's persistent data structure for storing messages offers a great deal of flexibility in terms of how we want to consume messages. We can use consumer groups to perform different operations against the same set of messages while also being able to scale each consumer application horizontally.