1.0.0 • Published 3 years ago

typekafkaconsumer v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

TypeScript KafkaJS

Simple Producer & Client example in KafkaJS

How to run:

Step 1: Setup Kafka (I used the following blog): https://blog.soshace.com/the-ultimate-introduction-to-kafka-with-javascript/

Step 2: Onc you have both the kafka-server and the kafka-zookeeper running, you can start the producer using ts-node src/producer.ts

Step 3: In a new terminal window, run ts-node src/consumer.ts to start the client.

Step 4: Go back to the producer, and start typing your data.