This project demonstrates how to use Apache Kafka with a simple Producer and Consumer setup using Docker. It runs Kafka and Zookeeper in containers and provides example code for producing and consuming messages.
-
Runs Kafka and Zookeeper using Docker Compose.
-
Kafka Producer: sends messages to a topic.
-
Kafka Consumer: reads messages from a topic.
-
Minimal configuration for quick testing and learning.
- NodeJs
- Apache Kafka
- Docker & Docker Compose
1. Clone the repository:
git clone https://github.com/boiar/kafka-demo.git
cd kafka-demo
2. Start Zookeeper and Kafka:
docker-compose up -d
3. Verify containers are running:
docker ps
All my notes and resources are available in https://www.notion.so/Apache-Kafka-27d4d43c353b804e9b8af2acf1b02b23?source=copy_link
