Skip to content

Kafka Producer and Consumer using docker and docker-compose example

Notifications You must be signed in to change notification settings

harishbisht/kafka-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Producer and Consumer using docker and docker-compose example

  • Running the kafka and zookeeper on the docker container
  • Using the protobuf to serialize the messages
  • Created a producer and consumer in python language

Installation

Install docker and docker-compose from official docker website and run the below commands

It will pull the official kafka and zookeeper docker images and run it inside the kafka-network

$ cd kafka_and_zookeeper
$ docker-compose up -d

It will start producing the messages and push to the kafka

$ cd producer
$ ./build.sh
$ ./start.sh

It will start receiving the messages from kafka and process the messages

$ cd consumer
$ ./build.sh
$ ./start.sh

Thanks for reading and please contribute (:

About

Kafka Producer and Consumer using docker and docker-compose example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published