Skip to content

yaroslavx/kafka-node-producer-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample of producer-consumer communication through kafka

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.