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
  • НаукаНаука

Комментарии • 69

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

  • @CodeCraftsman
    @CodeCraftsman 3 года назад +2

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

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

  • @NIKOLAZ56
    @NIKOLAZ56 2 года назад

    impeccable way of explaining how kaftka works

  • @objectObject212
    @objectObject212 2 года назад +1

    Great tutorial, exactly what I was looking for!

  • @MegaJagveer
    @MegaJagveer 3 года назад +6

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

  • @JosuaLeonard
    @JosuaLeonard 3 года назад

    Thank you Kris! Really clear and straightforward explanation. 🔥

  • @nishanthanr605
    @nishanthanr605 2 года назад

    no annoying music no extra talks.
    very clear content

  • @andreassef3656
    @andreassef3656 2 года назад +1

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

  • @burtreynolds111
    @burtreynolds111 3 года назад

    Awesome video Kris!! So helpful.

  • @kal_node
    @kal_node Год назад

    I found it quite explanatory and helpful, thanks!

  • @amirmohammadmirzaeirad3
    @amirmohammadmirzaeirad3 5 месяцев назад

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

  • @muratasarslan2359
    @muratasarslan2359 Год назад

    Thank you Kris, very clear & helpful.

  • @mohammadpartovi1813
    @mohammadpartovi1813 Год назад

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

  • @ayushpgupta5755
    @ayushpgupta5755 3 года назад

    Very clearly explained with bare minimum code.

  • @Cyberspider76
    @Cyberspider76 3 года назад +2

    Well done… simple and too the point!

  • @raviparashanaboina4644
    @raviparashanaboina4644 Год назад

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

  • @fraewn2617
    @fraewn2617 2 года назад +1

    Great tutorial, thank you!

  • @ryanhill101
    @ryanhill101 2 года назад +1

    Nice video Kris and super easy to follow.

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Thank you Ryan, glad you enjoyed!

  • @surajjoshi5503
    @surajjoshi5503 Год назад +1

    Great Explanation

  • @elad3958
    @elad3958 Год назад

    I subscribed to your channel after this awesome tutorial

  • @raymondoyinlola7765
    @raymondoyinlola7765 3 года назад

    This is really helpful.

  • @sreeananthakannan
    @sreeananthakannan 2 года назад

    It was the good video to understand about basic of kafka

  • @panjijayasutra1573
    @panjijayasutra1573 2 года назад

    Very usefull, thankyou verymuch Kris

  • @babanmalhi6168
    @babanmalhi6168 Год назад

    Thank you so much. Very very helpful

  • @hegeltron
    @hegeltron 2 года назад +1

    Thanks Kris!

  • @thetrooper6
    @thetrooper6 Год назад +1

    great demo! thank you!

  • @ntwariegide5993
    @ntwariegide5993 3 года назад

    Thanks for this great video

  • @imsarvesh_
    @imsarvesh_ 2 года назад +1

    Finally I understood Kafka.

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Thank you, glad you enjoyed!

  • @AnkitKPunjabi
    @AnkitKPunjabi Год назад

    Crisp and clear

  • @Kreator321RG
    @Kreator321RG 2 года назад

    Thanks a lot! You are the best))

  • @eternalharmony0
    @eternalharmony0 Год назад

    Thank you so much.

  • @mahendranath2504
    @mahendranath2504 2 года назад

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

  • @karmakiller360
    @karmakiller360 2 года назад +1

    Good Job. Thank U

  • @atiqbaqi
    @atiqbaqi Год назад

    great example

  • @vitorsantana2795
    @vitorsantana2795 2 года назад

    Thanks a lot!!

  • @chathurangabandarapc
    @chathurangabandarapc 3 года назад

    Thanks you very much

  • @afshinrahmati786
    @afshinrahmati786 11 месяцев назад

    Thank you ,

  • @manikjain6048
    @manikjain6048 3 года назад +1

    Nice work

    • @KrisFoster1
      @KrisFoster1  3 года назад +1

      Thank you @Manik Jain, glad you enjoyed!

  • @herbertk9266
    @herbertk9266 3 года назад +2

    Thanks for sharing

  • @get_carrot
    @get_carrot 5 месяцев назад

    like your voice

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

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

  • @daesvideo
    @daesvideo Год назад

    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.

  • @Mvrck44
    @Mvrck44 2 года назад

    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.

    • @joaovitorsilveira256
      @joaovitorsilveira256 2 года назад

      Hey man, how did you overcome this problem?

    • @Mvrck44
      @Mvrck44 2 года назад

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

  • @kishorrathva4097
    @kishorrathva4097 2 года назад

    Which Nodejs version are you using ?

  • @_slier
    @_slier Год назад

    so from your demo, kafka is like messaging system like rabbitmq?

  • @karusalavinaykumar7399
    @karusalavinaykumar7399 9 месяцев назад

    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.

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

  • @mohamatnasri9619
    @mohamatnasri9619 2 года назад

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

  • @thong3233
    @thong3233 2 года назад +1

    i can't install rdkafka, please help me

  • @lynnegaming7328
    @lynnegaming7328 Год назад

    can i make it without docker??

  • @andriizilnyk4927
    @andriizilnyk4927 2 года назад +1

    does not wok on node 14.17.5

  • @shivammishra-sj8jo
    @shivammishra-sj8jo 2 года назад

    Hi Kris i am not able to install node-rdkafka can you help me out ?

    • @daesvideo
      @daesvideo Год назад

      Hi, search some Dockerfile with RUN apt intsall cmake, and other tools, that's the good one.

  • @navyaraj5316
    @navyaraj5316 3 месяца назад

    getting error while installing rdkafka 😢 anyone help please

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

  • @olorundareagnes934
    @olorundareagnes934 Год назад

    Great tutorial.
    Thanks a lot!