This is a Apache Kafka project built on Docker with kafka-node
.
First, run the development server:
docker-compose up -d
This will create a Kafka environment at http://localhost:9093 for testing.
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.