Skip to content

DmitryDubovikov/Kafka-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka-Python

Project descriprion

This is a simple example of using Apache Kafka with Python. Producer produces messages with texts and consumer consumes it.

Gif

Getting Started

Follow these steps to get the project up and running on your local machine:

Download the latest Kafka release and extract it to Kafka folder

Start the ZooKeeper service:

cd Kafka
bin/zookeeper-server-start.sh config/zookeeper.properties

Start the Kafka broker service:

bin/kafka-server-start.sh config/server.properties

Once all services have successfully launched, you will have a basic Kafka environment running and ready to use.

Clone the Repository:

git https://github.com/DmitryDubovikov/Kafka-Python.git
cd Kafka-Python

Create a Virtual Environment:

python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

Install Dependencies:

pip install -r requirements.txt

Run consumer.py and producer.py in two terminals:

python3 consumer.py
python3 producer.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages