Instructions
docker-compose up -d
to setup the project- Run
docker-compose exec kafka bash
in three different terminals to check producer and consumer connectivity over docker - Create a topic using
/bin/kafka-topics --create --topic topic-name --bootstrap-server localhost:9092
- Start the consumer using
/bin/kafka-console-consumer --topic topic-name --from-beginning --bootstrap-server localhost:9092
- Start the producer using
/bin/kafka-console-producer --topic topic-name --bootstrap-server localhost:9092