Skip to content

marceloweb/kafka-example-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Example using Python

Quick Start

Initial menu

Options Description
1 Producer
2 Consumer
3 Exit

Kafka Producer

A producer is the one which publishes or writes data to the topics within different partitions.

Kafka Consumer

Kafka consumers are typically part of a consumer group . When multiple consumers are subscribed to a topic and belong to the same consumer group, each consumer in the group will receive messages from a different subset of the partitions in the topic.

Requirements

  • Kafka
  • Zookeeper

Run

$ cd kafka/
$ bin/kafka-console-producer.sh --broker-list 172.18.0.3:9092 --topic test-docker
$ bin/kafka-console-consumer.sh --bootstrap-server 172.18.0.3:9092 --topic test-docker --from-beginning

Contributing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published