Consumer Group

Explain Consumer Group In Kafka.

The consumer group-id is mandatory, it plays a major role when it comes to scalable message consumption.

What is message consumption?

Real-World Scenario

Summary

Practical Session.

How to view consumer groups

.\bin\windows\kafka-consumer-groups.bat --bootstrap-server localhost:9092 --list

Instantiate a Kafka consumer with the Consumer Group.

.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test-topic --group <group-name>
.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test-topic --group console-consumer-91346
.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test-topic --group console-consumer-91346
.\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test-topic

Software Engineer at HCL | Technical Content Writing | Follow me on LinkedIn https://www.linkedin.com/in/sagarkudu/