Skip to content

athlatif/python-kafka-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-kafka-demo

Prerequisites

  1. Docker
  2. Python 3.8
  3. Kafka-python package

Steps

1- Clone repo

git clone https://github.com/athlatif/python-kafka-demo.git

2- Clone docker image

git clone https://github.com/confluentinc/cp-all-in-one

3- Run docker image

cd C:\your_dir\cp-all-in-one\cp-all-in-one docker-compose up -d

2- create a topic

docker-compose exec broker kafka-topics --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic topicname

3- Run logs simulator code

python3 producer.py

4- Run consumers

python3 mongodbconsumer.py python3 modelConsumer.py

About

Demo of python-kafka package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages