Kafka Tutorial - Node.js Producer & Consumer

  Рет қаралды 70,981

Kris Foster

Kris Foster

Күн бұрын

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

Пікірлер: 70
@nishanthanr605
@nishanthanr605 2 жыл бұрын
no annoying music no extra talks. very clear content
@pankaj_9998
@pankaj_9998 3 жыл бұрын
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.
@amirmohammadmirzaeirad3
@amirmohammadmirzaeirad3 8 ай бұрын
Thanks man, great tutorial for those who are just getting started with kafka with nodejs.
@MegaJagveer
@MegaJagveer 3 жыл бұрын
Incredible video with very clear steps and instructions. Looking forward to more stuff!
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Thank you @Jagveer Singh!
@saqibullah7286
@saqibullah7286 2 ай бұрын
Nice explanation much recommended for beginners
@NIKOLAZ56
@NIKOLAZ56 3 жыл бұрын
impeccable way of explaining how kaftka works
@imsarvesh_
@imsarvesh_ 2 жыл бұрын
Finally I understood Kafka.
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thank you, glad you enjoyed!
@CodeCraftsman
@CodeCraftsman 3 жыл бұрын
This is awesome man! I was looking for short and crisp explanation of Kafka! You nailed it!
@Cyberspider76
@Cyberspider76 3 жыл бұрын
Well done… simple and too the point!
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Thank you!
@surajjoshi5503
@surajjoshi5503 2 жыл бұрын
Great Explanation
@andreassef3656
@andreassef3656 3 жыл бұрын
Thank you for this content, it help me so much to understand how kafka works!
@objectObject212
@objectObject212 3 жыл бұрын
Great tutorial, exactly what I was looking for!
@ayushpgupta5755
@ayushpgupta5755 3 жыл бұрын
Very clearly explained with bare minimum code.
@mohammadpartovi1813
@mohammadpartovi1813 Жыл бұрын
This was fantastic. Great explanation. Thank you very much for sharing your knowledge.
@TheCouncellor7
@TheCouncellor7 3 жыл бұрын
Thanks Kris, what a fantastic clear instructions and clean code, wonderful to watch, thanks again for sharing your time and your knowledge, much appreciated
@elad3958
@elad3958 Жыл бұрын
I subscribed to your channel after this awesome tutorial
@kal_node
@kal_node 2 жыл бұрын
I found it quite explanatory and helpful, thanks!
@muratasarslan2359
@muratasarslan2359 2 жыл бұрын
Thank you Kris, very clear & helpful.
@raviparashanaboina4644
@raviparashanaboina4644 2 жыл бұрын
Thank you So much it is one of the best tutorial for producer and consumer great work!
@ryanhill101
@ryanhill101 2 жыл бұрын
Nice video Kris and super easy to follow.
@KrisFoster1
@KrisFoster1 2 жыл бұрын
Thank you Ryan, glad you enjoyed!
@sreeananthakannan
@sreeananthakannan 2 жыл бұрын
It was the good video to understand about basic of kafka
@JosuaLeonard
@JosuaLeonard 3 жыл бұрын
Thank you Kris! Really clear and straightforward explanation. 🔥
@fraewn2617
@fraewn2617 2 жыл бұрын
Great tutorial, thank you!
@burtreynolds111
@burtreynolds111 3 жыл бұрын
Awesome video Kris!! So helpful.
@babanmalhi6168
@babanmalhi6168 Жыл бұрын
Thank you so much. Very very helpful
@panjijayasutra1573
@panjijayasutra1573 2 жыл бұрын
Very usefull, thankyou verymuch Kris
@hegeltron
@hegeltron 3 жыл бұрын
Thanks Kris!
@mahendranath2504
@mahendranath2504 2 жыл бұрын
Thank you so much ❤️👍🏼🎉⭐🙏🤛, subscribed and 👍🏼
@AnkitKPunjabi
@AnkitKPunjabi 2 жыл бұрын
Crisp and clear
@eternalharmony0
@eternalharmony0 Жыл бұрын
Thank you so much.
@raymondoyinlola7765
@raymondoyinlola7765 3 жыл бұрын
This is really helpful.
@ntwariegide5993
@ntwariegide5993 3 жыл бұрын
Thanks for this great video
@karmakiller360
@karmakiller360 3 жыл бұрын
Good Job. Thank U
@Kreator321RG
@Kreator321RG 2 жыл бұрын
Thanks a lot! You are the best))
@herbertk9266
@herbertk9266 3 жыл бұрын
Thanks for sharing
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Glad you enjoyed!
@atiqbaqi
@atiqbaqi 2 жыл бұрын
great example
@manikjain6048
@manikjain6048 3 жыл бұрын
Nice work
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Thank you @Manik Jain, glad you enjoyed!
@Mvrck44
@Mvrck44 3 жыл бұрын
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.
@Not256O0
@Not256O0 3 жыл бұрын
Hey man, how did you overcome this problem?
@Mvrck44
@Mvrck44 3 жыл бұрын
@@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.
@karusalavinaykumar7399
@karusalavinaykumar7399 Жыл бұрын
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.
@thong3233
@thong3233 3 жыл бұрын
i can't install rdkafka, please help me
@afshinrahmati786
@afshinrahmati786 Жыл бұрын
Thank you ,
@vitorsantana2795
@vitorsantana2795 2 жыл бұрын
Thanks a lot!!
@chathurangabandarapc
@chathurangabandarapc 3 жыл бұрын
Thanks you very much
@daesvideo
@daesvideo 2 жыл бұрын
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.
@GM-je3zp
@GM-je3zp Жыл бұрын
nice tutorial... Kafka container doesnt run for me though and had to get the compose file from an exmaple from cofluetn
@get_carrot
@get_carrot 8 ай бұрын
like your voice
@abderrahmane_24m
@abderrahmane_24m 2 жыл бұрын
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?
@_slier
@_slier 2 жыл бұрын
so from your demo, kafka is like messaging system like rabbitmq?
@K_H-Channel
@K_H-Channel 3 жыл бұрын
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.
@andriizilnyk4927
@andriizilnyk4927 3 жыл бұрын
does not wok on node 14.17.5
@mohamatnasri9619
@mohamatnasri9619 2 жыл бұрын
i use type: modules still get same error, so how?
@rules654
@rules654 2 жыл бұрын
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
@madeby-jugnu
@madeby-jugnu 6 ай бұрын
getting error while installing rdkafka 😢 anyone help please
@kishorrathva4097
@kishorrathva4097 3 жыл бұрын
Which Nodejs version are you using ?
@lynnegaming7328
@lynnegaming7328 Жыл бұрын
can i make it without docker??
@shivammishra-sj8jo
@shivammishra-sj8jo 2 жыл бұрын
Hi Kris i am not able to install node-rdkafka can you help me out ?
@daesvideo
@daesvideo 2 жыл бұрын
Hi, search some Dockerfile with RUN apt intsall cmake, and other tools, that's the good one.
@thetrooper6
@thetrooper6 Жыл бұрын
great demo! thank you!
@KrisFoster1
@KrisFoster1 Жыл бұрын
Glad you enjoyed, thank you!
@olorundareagnes934
@olorundareagnes934 Жыл бұрын
Great tutorial. Thanks a lot!
Event-driven Microservices with Node.js, Kafka & Conduktor
28:39
TomDoesTech
Рет қаралды 16 М.
Apache Kafka Crash Course
1:18:06
Hussein Nasser
Рет қаралды 429 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 27 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 45 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
All you need to know about "child_process" in Node.js
12:38
Software Developer Diaries
Рет қаралды 7 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 651 М.
Apache Kafka Node js Producer and Consumer
10:49
lemoncode21
Рет қаралды 18 М.
TypeScript REST API with NodeJS, Postgres & TypeORM
9:20
Kris Foster
Рет қаралды 28 М.
The Ultimate Guide of Using Kafka with Node.js
9:10
Florian Ludewig
Рет қаралды 10 М.
Лучший Гайд по Kafka для Начинающих За 1 Час
1:15:01
Node.js "Event Emitters" Explained
9:50
Software Developer Diaries
Рет қаралды 9 М.
Apache KAFKA Tutorial | KAFKA Crash Course | Spring Boot
56:49
Daily Code Buffer
Рет қаралды 86 М.
Apache Kafka Architecture
11:19
Anton Putra
Рет қаралды 30 М.
Про Kafka (основы)
49:23
Владимир Богдановский
Рет қаралды 398 М.
How to connect electrical wires with good contact #short
0:29
Tuan CT
Рет қаралды 20 МЛН
The force of electromagnetic eddy currents
0:31
Nikola Toy
Рет қаралды 20 МЛН
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 1,1 МЛН
Как удалить компромат с компьютера?
0:20
Лена Тропоцел
Рет қаралды 2,2 МЛН
iPad Domino has been in use for a long time. Let's see the effect
0:12
3D Fantasy Life
Рет қаралды 481 М.
Wireless switch part 177
0:58
DailyTech
Рет қаралды 4,4 МЛН