This repository contains the sample code related to Redpanda and Python getting started guide.
- Python 3 with pip
- Docker
Install kafka-python package by running:
pip install kafka-python
docker compose up -d
Run the string_producer.py to produce 10 messages to the orders topic. Run the string_consumer.py to consume them back.
Run the json_producer.py to produce 10 JSON messages to the orders topic. Run the json_consumer.py to consume them back.
Clean up the containers by running:
docker compose down