This repo allows to easily run a local Kafka setup based on docker containers. It includes some custom python script to simulate producers and consumers
virtualenv -p python3 .env
pip3 install -r requirements.txt
docker-compose up -d
./update-hosts.sh # in case you need to update /etc/hosts with the names of the services
docker-compose down -v
cd demo/simple_app
TOPIC=<your_topic> LOCATION=<your_location_id> python3 producer
cd demo/simple_app
TOPIC=<your_topic> LOCATION=<your_location_id> python3 consumer.py
cd demo/simple_app
TOPIC=<your_topic> python3 consumer.py
cd demo/avro_app
TOPIC=<your_topic> python3 schema_uploader.py