This repo contains the project to understand end-to-end data streaming using Apache Kafka and Socket.io.
To begin:
npm i express socket.io kafka-node
Download and setup Apache Kafka: https://kafka.apache.org/quickstart Follow till Step 3.
In a new terminal:
npm server_consumer.js
In another terminal:
npm producer.js
Open index.html
In the terminal with producer.js, start entering numbers. You should be able to see the data being streamed on the webpage.