Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 786 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 786 Bytes

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 (: