A Kafka producer and consumer using Sarama with instrumentation.
These instructions expect you have docker-compose installed.
Bring up the Kafka and ZooKeeper services to run the
example:
docker-compose up -d zoo kafkaThen up the kafka-producer service to produce a message into Kafka:
docker-compose up kafka-producerAt last, up the kafka-consumer service to consume messages from Kafka:
docker-compose up kafka-consumerShut down the services when you are finished with the example:
docker-compose down