Projeto simples com producer/consumer que gera algumas mensagens num tópico.
docker-compose up -d
docker exec -it meu_kafka_kafka_1 kafka-topics.sh --create --zookeeper zookeeper:2181 -replication-factor 1 --partitions 1 --topic pastel
- Producer
docker exec -it meu_kafka_kafka_1 kafka-console-producer.sh --broker-list localhost:9092 --topic pastel
- Consumer
docker exec -it meu_kafka_kafka_1 kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic pastel --from-beginning