diff --git a/README.md b/README.md new file mode 100644 index 0000000..34eb230 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Kafka Example + +This is a very simple application to demonstrate how to set up a Kafka instance, create a consumer and a producer, and send and receive messages. + +## Setup + +1) Create a virtual environment +2) Install required libraries +```zsh +pip3 install -r requirements.txt +``` +3) Run Kafka using Docker Compose +```zsh +docker compose up +``` +4) Run tracker.py +```zsh +python3 src/tracker.py +``` +5) Run producer.py +```zsh +python3 src/producer.py +``` +6) Confirm messages in terminal \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..52bd32e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +confluent-kafka \ No newline at end of file