Skip to content

This repo shows how you can create a topic, send a message and listen to a kafka environment with 1 zookeper and 1 broker, which you simulate with docker-compose, using the python programming language.

Notifications You must be signed in to change notification settings

Natgho/apache-kafka-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Producer and Consumer Sample with Docker-compose

This repo shows how you can create a topic, send a message and listen to a kafka environment with 1 zookeper and 1 broker, which you simulate with docker-compose, using the python programming language.

Run docker dompose

docker-compose up -d

Start project

pip install -r requirements.txt
python producer.py
python consumer.py

Also you can take a look detailed article: https://www.sezerbozkir.com/2021/06/python-ile-apache-kafka-icin-consumer-ve-procuder-olusturma/

About

This repo shows how you can create a topic, send a message and listen to a kafka environment with 1 zookeper and 1 broker, which you simulate with docker-compose, using the python programming language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages