Skip to content

lazolalucas/poc_kafka-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poc_kafka-node

Notes:

  • Have Docker installed locally on your machine

  • run docker run -p 2181:2181 -p 9092:9092
    --env ADVERTISED_HOST=localhost
    --env ADVERTISED_PORT=9092
    --env CONSUMER_THREADS=1
    --env TOPICS=my-topic,some-other-topic
    --env ZK_CONNECT=kafka7zookeeper:2181/root/path
    --env GROUP_ID=mymirror
    spotify/kafkaproxy

  • optional: update producer.js files vars 'message' and 'keyedMessage' to your prefered messages

  • run node ./producer.js to produce to Kafka topic 'my-topic'

  • run node ./consume.js to consume from Kafka topic 'my-topic'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published