Testing Apache Kafka using Go.
-
Provision the single node Kafka cluster using Docker:
docker-compose -p apache-kafka-go up -d
-
Add the following entry to the
hosts
file on your machine (e.g. /etc/hosts):127.0.0.1 kafka
-
Play around with the
producer.go
andconsumer.go
sample applications:go run producer/producer.go -t topic go run consumer/consumer.go -t topic -g group