Kafka + Microservices + Event Driven Architecture with NodeJS

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • In this tutorial we will learn how to use Kafka to communicate between microservices and pass events between containers
    So we will learn how to create microservices and how to manage multiple projects using microservices and actual implementation and use case of Kafka with from scratch
    We will also learn what are the extensions of VSCcode for using Kafka
    How to write docker compose file and how to manage multiple Servies is what we are going to cover in this session
    Find me anywhere : @itsmaheshkariya
    #Kafka #Microservices #EventDrivenArchitecture

ความคิดเห็น • 74

  • @pabloendara-santiago514
    @pabloendara-santiago514 11 หลายเดือนก่อน +1

    Great Video! But I'm curious to know why did you choose to use kafka-node over kafka-js

    • @maheshkariya
      @maheshkariya  11 หลายเดือนก่อน +1

      Kafka js is core library you should use it

    • @GuilhermeFaxina-r5q
      @GuilhermeFaxina-r5q 6 วันที่ผ่านมา +1

      @@maheshkariya thanks for answering after that much time

  • @umeshthakre416
    @umeshthakre416 2 ปีที่แล้ว +20

    Your channel is so underrated this is gold level stuff

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว +5

      This one comment is also equal to tens of million of subscribers. Thanks

    • @umeshthakre416
      @umeshthakre416 2 ปีที่แล้ว +2

      @@maheshkariya the content which you are providing is what really happens in production and in companies. This is missing from mostly from youtube

    • @sideshow00
      @sideshow00 2 ปีที่แล้ว

      Indeed

    • @NomadStriver
      @NomadStriver ปีที่แล้ว

      @@umeshthakre416 Totally agree.

  • @aruprakshit7218
    @aruprakshit7218 หลายเดือนก่อน

    Fascinating thing I learned today practically. You got me in your channel!

  • @k.ganesan3244
    @k.ganesan3244 2 ปีที่แล้ว +4

    Great Channel... your videos are advanced level... thanks for sharing.

  • @Piratacapitan
    @Piratacapitan ปีที่แล้ว +2

    Nice tutorial!
    I can recreate all that you explained!
    Nice Job

  • @abdusamedakgul2311
    @abdusamedakgul2311 ปีที่แล้ว

    Thanks so much. Clear and very useful content.

  • @Lifeofapro2050
    @Lifeofapro2050 2 ปีที่แล้ว

    Awesome Bro. I Was able to run the application successfully.

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว

      Thanks and don’t forget to subscribe if you enjoyed Okay 👍

  • @N4533M1
    @N4533M1 2 ปีที่แล้ว +6

    Anyone know where to find the source code for this?

  • @kimokimo-se3ur
    @kimokimo-se3ur ปีที่แล้ว

    Thank you very much for this helpful tuto god bless

  • @fareedmohammed7612
    @fareedmohammed7612 11 หลายเดือนก่อน +1

    Great tutorial. Thanks for this. Please share a link where the code can be accessed

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 2 ปีที่แล้ว +1

    Great

  • @swapnilsons
    @swapnilsons 2 ปีที่แล้ว

    Better to understood your work is appreciated

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว +1

      Subscribe will be enough for me I guess. 🙂

  • @anvlog7483
    @anvlog7483 ปีที่แล้ว

    Awesome 👍

  • @NomadStriver
    @NomadStriver ปีที่แล้ว

    Excellent explanation... very helpful... keep creating such kind of videos.... already subscribed👍👍👍

  • @NightstalkerKK
    @NightstalkerKK 2 ปีที่แล้ว +4

    Can you please provide us with the github to the code?

  • @easward
    @easward ปีที่แล้ว +1

    Unable find this code in ur git repository, please mention it here

  • @abderrahmane_24m
    @abderrahmane_24m 2 ปีที่แล้ว +1

    Hello! thanks for the effort, one question though; I'm trying to add the node js app to docker compose, but docker is failing to install node-rdkafka, is there a way to do that?

  • @fersomaster
    @fersomaster 2 ปีที่แล้ว +2

    Could you show us how to deal with failures, between microservices, something about Dead Queue?

    • @darrenhudson1033
      @darrenhudson1033 ปีที่แล้ว

      Look into the Saga design pattern. It rolls back transactions across multiple services if there has been an error.

  • @berndeveloper
    @berndeveloper 10 หลายเดือนก่อน

    Can you update this same format but doing it with the modern way to work with Kafka Kraft and NestJs?, good explanation btw!.

  • @sideshow00
    @sideshow00 2 ปีที่แล้ว +1

    How long would it take a new person to learn all this?

  • @mkstallion89
    @mkstallion89 ปีที่แล้ว

    Great Video. Can you create a video with same example and rollback or failure

  • @uditpandya3836
    @uditpandya3836 ปีที่แล้ว

    A great tutorial! A couple of errors though. Mongodb keeps waiting for connections. Had to use network: to get rid of it. A second error which I haven't been able to solve is ` Error: getaddrinfo EAI_AGAIN kafka`. Any solution for this will be appreciated. Thanks!

  • @okunlolaoluwaseun4390
    @okunlolaoluwaseun4390 ปีที่แล้ว

    Thanks alot bro

  • @AbhishekBisht-yt1el
    @AbhishekBisht-yt1el 11 หลายเดือนก่อน

    Hi Mahesh, Great content. This is something I’m doing as well.
    I’m trying to send mongdb data to kafka broker through streams. My only issue is, I’ve not added wait time like you did over here and I get connection refuse after 3000 simultaneous requests to kafka broker.
    The data I need to send is huge, lets say around 100K documents in an hour. Is there an effective way to do it? Will adding more brokers help? Will adding multiple server instances help?

  • @ivancalisaya4218
    @ivancalisaya4218 ปีที่แล้ว

    Buen video 👍

  • @0xcoder542
    @0xcoder542 ปีที่แล้ว +2

    @Mahesh Kariya - thank you for creating such a great video. May I know is there a github link where I can get the source code?

  • @VaishnavPureddiwar
    @VaishnavPureddiwar ปีที่แล้ว

    do you have a repo link?

  • @ibringit
    @ibringit ปีที่แล้ว

    🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

  • @pankajwp
    @pankajwp 2 ปีที่แล้ว

    Whats the autocomplete tool.. you are using for code completion..

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว

      GitHub copilot 😞

    • @pankajwp
      @pankajwp 2 ปีที่แล้ว

      @@maheshkariya ohh

  • @abc_cba
    @abc_cba 2 ปีที่แล้ว

    You're simply phenomenal.
    How can we use this application to display on the front end as a React app?
    Can you counsel me ?
    I am willing to pay a fee for this

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว +1

      FYI thanks button is there after like button to support or pay directly. and no worries it will work same with react as well. this is mainly for background task like server side calling based on that you can trigger any thing via socket or calling api timely in 5 or 10 seconds which is standard way actually.

    • @abc_cba
      @abc_cba 2 ปีที่แล้ว

      @@maheshkariya thanks for responding, can you guide me through ?

  • @kushaluk2381
    @kushaluk2381 ปีที่แล้ว +1

    Hi ,Docker compose is showing error in vs code .. please help me to resolve this :
    version: "3.8"
    services:
    zookeeper:
    container_name: zookeeper
    image: wurstmeister/zookeeper
    ports:
    - 2181:2181
    kafka:
    container_name: kafka
    image: wrustmeister/kafka
    ports:
    - 9092:9092
    volumes:
    # - ./data/kafka:/tmp/zookeeper
    - ./var/run/docker.sock/var/run/docker.sock
    environment:
    - KAFKA_ADVERTISED_HOST_NAME=kafka
    - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
    mongo:
    container_name: mongo
    image: mongo
    ports:
    - 27017:27017
    volumes:
    - ./data/mongo:/data/db
    environment:
    - KAFKA_ADVERTISED_HOST_NAME=kafka
    - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
    mongo:
    container_name: mongo
    image: mongo
    ports:
    - 27017:27017
    volumes:
    - ./data/mongo:/data/db
    postgres:
    container_name: postgres
    image: postgres
    ports:
    - 5432:5432
    volumes:
    ./data/postgres:/var/lib/postgresql/data
    environment:
    - POSTGRES_USER=postgres
    - POSTGRES_PASSWORD=postgres
    - POSTGRES_DB=postgres

  • @lynnegaming7328
    @lynnegaming7328 ปีที่แล้ว

    can i make it without docker

  • @a_guy_called_Jerry
    @a_guy_called_Jerry 6 หลายเดือนก่อน

    okay

  • @mdomerarafat4611
    @mdomerarafat4611 ปีที่แล้ว

    Note: you have to create the topic by yourself.

  • @bhuvanye8370
    @bhuvanye8370 2 ปีที่แล้ว +1

    can anyone share the source code

  • @maratakulov758
    @maratakulov758 2 ปีที่แล้ว +1

    the sound man..

  • @shashankawasthi9291
    @shashankawasthi9291 2 ปีที่แล้ว +1

    Why do you emphasize so much on the letter 'T' ? It makes the presentation too irritating for a tutorial session. Feels like I am in a gaming commentary session. Talk in natural voice man. On the other hand... the content is pretty good i cant skip it so will have to tolerate your voice. Thanks for the content :)

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว +2

      Oh! Sorry for that so in new videos I am not making such mistakes but Thank you so much for letting me bro will fix it 😎

    • @Alfakatt
      @Alfakatt 5 หลายเดือนก่อน

      Is he the first indian you ever heard speaking English or tf is your problem? 🤦🏻

    • @maheshkariya
      @maheshkariya  5 หลายเดือนก่อน

      @Alfakatt 😂😂

  • @saeeduchiha5537
    @saeeduchiha5537 ปีที่แล้ว

    It's a nice effort, but it's full of errors and not so well put together. I think it's not the creater's fault, its simply a very advanced topic cooked in a too short time!

    • @maheshkariya
      @maheshkariya  ปีที่แล้ว

      You are right, But I still use same tutorial exactly to copy and create Kafka stuff this is one of my best videos, Don’t underestimate this one try again it will work for sure 100%

    • @saeeduchiha5537
      @saeeduchiha5537 ปีที่แล้ว

      @@maheshkariya I did try it and ...it didn't! sorry!

  • @SahilRai2
    @SahilRai2 11 หลายเดือนก่อน

    any newbie to kafka, should not watch this video.

  • @NathanielBabalola
    @NathanielBabalola 2 ปีที่แล้ว +1

    Please create a Express J's microservice from scratch.
    Also if you can please avoid speaking so closely to the mic

    • @maheshkariya
      @maheshkariya  2 ปีที่แล้ว +3

      Sure I will make it

    • @NathanielBabalola
      @NathanielBabalola 2 ปีที่แล้ว +1

      @@maheshkariya hello, good evening.... just wanted to ask, if we're still going to get this

  • @paulvalor8022
    @paulvalor8022 ปีที่แล้ว

    So many OKs. OK?

  • @mahendranath2504
    @mahendranath2504 ปีที่แล้ว +1

    Thank you so much 🤝, I liked it, and I'm a happy subscriber 🤗 like 👍 your video, could you do with rabbitMQ but any changes 🤌