FastAPI Event Driven Development With Kafka, Zookeeper and Docker Compose: A Step-by-Step Guide Part -1

Ahmed Nafies
6 min readApr 18, 2023

Setting up Kafka and Docker compose

Full Code on github here


In part 1, we will set up a single-node Kafka and Zookeeper environment using Docker Compose. We will then produce and consume test messages using the Kafka…