December 2017
Intermediate to advanced
404 pages
9h 28m
English
Contrary to RabbitMQ, Apache Kafka is a bit more complex to set up. Kafka itself requires a working Zookeeper setup in order to perform leader election, managing cluster state, and persisting cluster-wide configuration data. However, for development purposes, we can use the spotify/kafka image. This image comes with a built-in Zookeeper installation, allowing quick and easy setup.
Just as with the RabbitMQ image before, use the docker run command to get started quickly:
$ docker run -d --name kafka -p 9092:9092 spotify/kafka
This will start a single-node Kafka instance and bind it to the localhost TCP port 9092.
Read now
Unlock full access