Skip to content

darlonv/kafka_producer-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka_producer-consumer

Producer and consumer using Python and Apache Kafka.

To initialize Kafka:
docker-compose up

To register a topic:
python prodcons.py --type register -t TOPIC

To list all registered topics:
python prodcons.py --type list

To consumer from a specific topic:
python prodcons.py --type consumer -t TOPIC (Ctrl +c to stop)

To produce messages on a specific topic:
python prodcons.py --type producer -t TOPIC -m MESSAGE -n NUM_MESSAGES

To shutdown Kafka:
docker-compose down

About

Producer and consumer using Python and Apache Kafka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published