A project to learn how to use Apache Kafka. Using Docker for convenience and applying python client.
To start the Apache Kafka broker with Zookeper using docker-compose.yml
use:
docker-compose up -d
Create new topic for the broker by updating create-topic.py
name of the topic (or using default quickstart
) and running it with:
pipenv run python create-topic.py
Update the producer.py
with the same topic name (or use the default one) used in create-topic.py
pipenv run python producer.py
Update the consume.py
with the same topic name (or use the default one) used in create-topic.py
pipevn run python consume.py