-
Install Kafka
-
Start zookeeper server
bin/zookeeper-server-start.sh config/zookeeper.properties
- Start kafka server
bin/kafka-server-start.sh config/server.properties
4.Create a topic
bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test
- To send messages to a topic
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
> This is a message
> This is another message
- npm install
- npm start