This repository demonstrates a simple Kafka setup using Docker, with separate NestJS-based producer and consumer services.
This project provides:
- A local Kafka broker and UI dashboard via Docker Compose
- A NestJS producer service (
producer/
) to send messages to Kafka - A NestJS consumer service (
consumer/
) to receive messages from Kafka
Start Kafka and the UI dashboard:
docker compose up -d
Once started, access the Kafka UI dashboard at http://localhost:8080.
- Navigate to the
producer
folder:cd producer yarn install yarn start
- The producer will send messages to the Kafka broker.
- Navigate to the
consumer
folder:cd consumer yarn install yarn start
- The consumer will listen for messages from the Kafka broker.
This project is licensed under the MIT License.