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

КОМЕНТАРІ • 70

  • @pankaj_9998
    @pankaj_9998 3 роки тому +35

    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.

  • @nishanthanr605
    @nishanthanr605 2 роки тому

    no annoying music no extra talks.
    very clear content

  • @amirmohammadmirzaeirad3
    @amirmohammadmirzaeirad3 8 місяців тому

    Thanks man, great tutorial for those who are just getting started with kafka with nodejs.

  • @MegaJagveer
    @MegaJagveer 3 роки тому +6

    Incredible video with very clear steps and instructions. Looking forward to more stuff!

  • @CodeCraftsman
    @CodeCraftsman 3 роки тому +2

    This is awesome man! I was looking for short and crisp explanation of Kafka! You nailed it!

  • @NIKOLAZ56
    @NIKOLAZ56 3 роки тому

    impeccable way of explaining how kaftka works

  • @saqibullah7286
    @saqibullah7286 2 місяці тому

    Nice explanation much recommended for beginners

  • @andreassef3656
    @andreassef3656 3 роки тому +1

    Thank you for this content, it help me so much to understand how kafka works!

  • @mohammadpartovi1813
    @mohammadpartovi1813 Рік тому

    This was fantastic. Great explanation. Thank you very much for sharing your knowledge.

  • @TheCouncellor7
    @TheCouncellor7 3 роки тому +1

    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

  • @imsarvesh_
    @imsarvesh_ 2 роки тому +1

    Finally I understood Kafka.

  • @objectObject212
    @objectObject212 3 роки тому +1

    Great tutorial, exactly what I was looking for!

  • @Cyberspider76
    @Cyberspider76 3 роки тому +2

    Well done… simple and too the point!

  • @raviparashanaboina4644
    @raviparashanaboina4644 2 роки тому

    Thank you So much it is one of the best tutorial for producer and consumer great work!

  • @muratasarslan2359
    @muratasarslan2359 2 роки тому

    Thank you Kris, very clear & helpful.

  • @surajjoshi5503
    @surajjoshi5503 2 роки тому +1

    Great Explanation

  • @kal_node
    @kal_node 2 роки тому

    I found it quite explanatory and helpful, thanks!

  • @ryanhill101
    @ryanhill101 3 роки тому +1

    Nice video Kris and super easy to follow.

    • @KrisFoster1
      @KrisFoster1  3 роки тому

      Thank you Ryan, glad you enjoyed!

  • @sreeananthakannan
    @sreeananthakannan 2 роки тому

    It was the good video to understand about basic of kafka

  • @ayushpgupta5755
    @ayushpgupta5755 3 роки тому

    Very clearly explained with bare minimum code.

  • @JosuaLeonard
    @JosuaLeonard 3 роки тому

    Thank you Kris! Really clear and straightforward explanation. 🔥

  • @burtreynolds111
    @burtreynolds111 3 роки тому

    Awesome video Kris!! So helpful.

  • @rules654
    @rules654 2 роки тому +1

    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

  • @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.

  • @thetrooper6
    @thetrooper6 Рік тому +1

    great demo! thank you!

  • @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.

  • @babanmalhi6168
    @babanmalhi6168 Рік тому

    Thank you so much. Very very helpful

  • @panjijayasutra1573
    @panjijayasutra1573 2 роки тому

    Very usefull, thankyou verymuch Kris

  • @olorundareagnes934
    @olorundareagnes934 Рік тому

    Great tutorial.
    Thanks a lot!

  • @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

  • @mahendranath2504
    @mahendranath2504 2 роки тому

    Thank you so much ❤️👍🏼🎉⭐🙏🤛, subscribed and 👍🏼

  • @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.

  • @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?

  • @hegeltron
    @hegeltron 3 роки тому +1

    Thanks Kris!

  • @eternalharmony0
    @eternalharmony0 Рік тому

    Thank you so much.

  • @AnkitKPunjabi
    @AnkitKPunjabi 2 роки тому

    Crisp and clear

  • @kishorrathva4097
    @kishorrathva4097 3 роки тому

    Which Nodejs version are you using ?

  • @thong3233
    @thong3233 3 роки тому +2

    i can't install rdkafka, please help me

  • @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.

  • @raymondoyinlola7765
    @raymondoyinlola7765 3 роки тому

    This is really helpful.

  • @karmakiller360
    @karmakiller360 3 роки тому +1

    Good Job. Thank U

  • @ntwariegide5993
    @ntwariegide5993 3 роки тому

    Thanks for this great video

  • @atiqbaqi
    @atiqbaqi 2 роки тому

    great example

  • @Kreator321RG
    @Kreator321RG 2 роки тому

    Thanks a lot! You are the best))

  • @herbertk9266
    @herbertk9266 3 роки тому +2

    Thanks for sharing

  • @lynnegaming7328
    @lynnegaming7328 Рік тому

    can i make it without docker??

  • @manikjain6048
    @manikjain6048 3 роки тому +1

    Nice work

    • @KrisFoster1
      @KrisFoster1  3 роки тому +1

      Thank you @Manik Jain, glad you enjoyed!

  • @afshinrahmati786
    @afshinrahmati786 Рік тому

    Thank you ,

  • @vitorsantana2795
    @vitorsantana2795 2 роки тому

    Thanks a lot!!

  • @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.

  • @chathurangabandarapc
    @chathurangabandarapc 3 роки тому

    Thanks you very much

  • @mohamatnasri9619
    @mohamatnasri9619 3 роки тому

    i use type: modules still get same error, so how?

  • @get_carrot
    @get_carrot 8 місяців тому

    like your voice

  • @andriizilnyk4927
    @andriizilnyk4927 3 роки тому +1

    does not wok on node 14.17.5

  • @madeby-jugnu
    @madeby-jugnu 6 місяців тому

    getting error while installing rdkafka 😢 anyone help please

  • @fraewn2617
    @fraewn2617 2 роки тому +1

    Great tutorial, thank you!