Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 631 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 631 Bytes

node-kafka-producer-consumer

Created for this YouTube tutorial.

A kafka producer/consumer proof of concept using node.

Screen Shot 2021-04-20 at 09 56 47

Prerequisites

  • node
  • docker

Running locally

  • npm install - installs npm dependencies.
  • ./scripts/start-kafka.sh - starts kafka inside docker container.
  • ./scripts/create-topic.sh - creates kafka topic.
  • npm run start:producer - starts producer.
  • npm run start:consumer - starts consumer.