To study the topic/consumer group interaction Creating a topic with 3 partitions docker exec -it kafka /opt/kafka/bin/kafka-topics.sh –create –topic test-topic –partitions 3 –bootstrap-server localhost:9092 Terminal 1 creating a consumer and attaching to learning-group docker exec -it kafka /opt/kafka/bin/kafka-console-consumer.sh –topic test-topic –group learning-group –bootstrap-server localhost:9092 Terminal 2 docker exec -it kafka /opt/kafka/bin/kafka-console-producer.sh –topic test-topic –bootstrap-server localhost:9092 Terminal 3 - check progress docker exec -it kafka /opt/kafka/bin/kafka-consumer-groups.sh –bootstrap-server localhost:9092 –group my-app –describe