Creating publisher and subscriber using JavaScript in Kafka.
npm ci
to install packages- Run
01-start-zookeeper.sh
start zookeeper server - Run
02-start-kafka.sh
start kafka server - Open new terminal run
node src/consumer.mjs
-
- Open new terminal run
node src/producer.mjs
- Open new terminal run