Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 480 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 480 Bytes

Kafka Ecommerce

Useful commands

Produce

docker-compose exec kafka bash
/bin/kafka-console-producer --topic <TOPIC_NAME> --bootstrap-server localhost:9092

Consumer

docker-compose exec kafka bash
/bin/kafka-console-consumer --topic <TOPIC_NAME> --from-beginning --bootstrap-server localhost:9092

Create Topic

docker-compose exec kafka bash
/bin/kafka-topics --create --topic <TOPIC_NAME> --bootstrap-server localhost:9092