Skip to content

javierlinked/kafka-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Sample Project

This repository demonstrates a simple Kafka setup using Docker, with separate NestJS-based producer and consumer services.

Table of Contents

Overview

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

Prerequisites

Setup

Start Kafka and the UI dashboard:

docker compose up -d

Kafka UI Dashboard

Once started, access the Kafka UI dashboard at http://localhost:8080.

Running the Producer

  1. Navigate to the producer folder:
    cd producer
    yarn install
    yarn start
  2. The producer will send messages to the Kafka broker.

Running the Consumer

  1. Navigate to the consumer folder:
    cd consumer
    yarn install
    yarn start
  2. The consumer will listen for messages from the Kafka broker.

License

This project is licensed under the MIT License.

About

Kafka & TypeScript playground

Topics

Resources

License

Stars

Watchers

Forks