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 -dOnce started, access the Kafka UI dashboard at http://localhost:8080.
- Navigate to the
producerfolder:cd producer yarn install yarn start - The producer will send messages to the Kafka broker.
- Navigate to the
consumerfolder:cd consumer yarn install yarn start - The consumer will listen for messages from the Kafka broker.
This project is licensed under the MIT License.