Kafka Tutorial - Node.js Producer & Consumer
Вставка
- Опубліковано 14 жов 2024
- 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/kri...
node-rdkafka - www.npmjs.com/...
avsc (for serialization & de-serialization) - www.npmjs.com/...
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.
no annoying music no extra talks.
very clear content
Thanks man, great tutorial for those who are just getting started with kafka with nodejs.
Incredible video with very clear steps and instructions. Looking forward to more stuff!
Thank you @Jagveer Singh!
This is awesome man! I was looking for short and crisp explanation of Kafka! You nailed it!
impeccable way of explaining how kaftka works
Nice explanation much recommended for beginners
Thank you for this content, it help me so much to understand how kafka works!
This was fantastic. Great explanation. Thank you very much for sharing your knowledge.
Thanks Kris, what a fantastic clear instructions and clean code, wonderful to watch, thanks again for sharing your time and your knowledge, much appreciated
I subscribed to your channel after this awesome tutorial
Finally I understood Kafka.
Thank you, glad you enjoyed!
Great tutorial, exactly what I was looking for!
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!
Thank you Kris, very clear & helpful.
Great Explanation
I found it quite explanatory and helpful, thanks!
Nice video Kris and super easy to follow.
Thank you Ryan, glad you enjoyed!
It was the good video to understand about basic of kafka
Very clearly explained with bare minimum code.
Thank you Kris! Really clear and straightforward explanation. 🔥
Awesome video Kris!! So helpful.
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
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.
great demo! thank you!
Glad you enjoyed, 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?
@@Not256O0 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.
Thank you so much. Very very helpful
Very usefull, thankyou verymuch Kris
Great tutorial.
Thanks a lot!
nice tutorial... Kafka container doesnt run for me though and had to get the compose file from an exmaple from cofluetn
Thank you so much ❤️👍🏼🎉⭐🙏🤛, subscribed and 👍🏼
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.
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?
so from your demo, kafka is like messaging system like rabbitmq?
Thanks Kris!
Thank you so much.
Crisp and clear
Which Nodejs version are you using ?
i can't install rdkafka, please help me
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.
This is really helpful.
Good Job. Thank U
Thanks for this great video
great example
Thanks a lot! You are the best))
Thanks for sharing
Glad you enjoyed!
can i make it without docker??
Nice work
Thank you @Manik Jain, glad you enjoyed!
Thank you ,
Thanks a lot!!
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.
Thanks you very much
i use type: modules still get same error, so how?
like your voice
does not wok on node 14.17.5
getting error while installing rdkafka 😢 anyone help please
Great tutorial, thank you!