carlosz44 / kafka-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Apache Kafka project built on Docker with kafka-node.

Getting Started

First, run the development server:

docker-compose up -d

This will create a Kafka environment at http://localhost:9093 for testing.

docker.png

Then, install all dependencies and run the index.js file:

npm install
node index.js

This will create a new topic and start sending random messages from the two producers during 20 seconds. You can editing the behaviour by modifying index.js and running the node index.js again.

About


Languages

Language:JavaScript 100.0%