Kafka Tutorial - Node.js Producer & Consumer
HTML-код
- Опубликовано: 30 апр 2021
- Learn how to create a kafka producer & consumer using node.js.
We will be running apache kafka in a docker container. We'll create a producer & consumer using node.js which will read & write events to the stream. This is useful when building event driven systems.
Check out the code on Github: github.com/kriscfoster/node-k...
node-rdkafka - www.npmjs.com/package/node-rd...
avsc (for serialization & de-serialization) - www.npmjs.com/package/avsc
Don't forget to Subscribe here: / @krisfoster1 - Наука
Thank you so much. Great explaination. Can you do a simple microservices project in nodejs with kafka being used for async communication among the services. That would be great.
This is awesome man! I was looking for short and crisp explanation of Kafka! You nailed it!
Thanks Kris, what a fantastic clear instructions and clean code, wonderful to watch, thanks again for sharing your time and your knowledge, much appreciated
impeccable way of explaining how kaftka works
Great tutorial, exactly what I was looking for!
Incredible video with very clear steps and instructions. Looking forward to more stuff!
Thank you @Jagveer Singh!
Thank you Kris! Really clear and straightforward explanation. 🔥
no annoying music no extra talks.
very clear content
Thank you for this content, it help me so much to understand how kafka works!
Awesome video Kris!! So helpful.
I found it quite explanatory and helpful, thanks!
Thanks man, great tutorial for those who are just getting started with kafka with nodejs.
Thank you Kris, very clear & helpful.
This was fantastic. Great explanation. Thank you very much for sharing your knowledge.
Very clearly explained with bare minimum code.
Well done… simple and too the point!
Thank you!
Thank you So much it is one of the best tutorial for producer and consumer great work!
Great tutorial, thank you!
Nice video Kris and super easy to follow.
Thank you Ryan, glad you enjoyed!
Great Explanation
I subscribed to your channel after this awesome tutorial
This is really helpful.
It was the good video to understand about basic of kafka
Very usefull, thankyou verymuch Kris
Thank you so much. Very very helpful
Thanks Kris!
great demo! thank you!
Glad you enjoyed, thank you!
Thanks for this great video
Finally I understood Kafka.
Thank you, glad you enjoyed!
Crisp and clear
Thanks a lot! You are the best))
Thank you so much.
Thank you so much ❤️👍🏼🎉⭐🙏🤛, subscribed and 👍🏼
Good Job. Thank U
great example
Thanks a lot!!
Thanks you very much
Thank you ,
Nice work
Thank you @Manik Jain, glad you enjoyed!
Thanks for sharing
Glad you enjoyed!
like your voice
Hi there, my company has Kafka built in Java. I am looking for a way to automate the events and use assertions to verify the events. Events can be in thousands. Is there a way to automate this using JavaScript/ node js/ Jest/Mocha/Chai or anything else that’s JavaScript? Thank you.
Hello, thank for this tutorial! I'm facing a problem using docker-compose, when producer gets triggered, I'm getting LibrdKafkaError: Local: Broker transport failure, any suggestion?
Hi, thank you very much. Can you do another exaple with multiple consumers please?. I tryed but just only one consumer can receibe message. thank you.
Thanks a lot for this. Quick hint, at the time of writing this comment, the 'npm i' won't work as is: new minor version of node-rdkafka(2.11) is available, need to be updated manually.
Hey man, how did you overcome this problem?
@@joaovitorsilveira256 after couldn't get neither 'npm ci', nor 'npm i' to work, I installed both dependencies listed in package.json manually, like 'npm i '. This installed node_modules and updated both .json files.
Which Nodejs version are you using ?
so from your demo, kafka is like messaging system like rabbitmq?
Thank you for the Tutorial.
npm i node-rdkafka is failing for us. Please make a video on how to install the pre-requisites and install node-rdkafka.
Thanks.
nice tutorial... Kafka container doesnt run for me though and had to get the compose file from an exmaple from cofluetn
i use type: modules still get same error, so how?
i can't install rdkafka, please help me
can i make it without docker??
does not wok on node 14.17.5
Hi Kris i am not able to install node-rdkafka can you help me out ?
Hi, search some Dockerfile with RUN apt intsall cmake, and other tools, that's the good one.
getting error while installing rdkafka 😢 anyone help please
If in windows and facing issues in creating topic use this command --------> docker exec -it [container_Id] /opt/bitnami/kafka/bin/kafka-topics.sh --create
--bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test
you can get the kafka container Id by running ---> docker ps
replace [container_Id] with the containerId of the kafka container
Great tutorial.
Thanks a lot!