Nest.js & Kafkajs | Error Handling + Class Design

Sdílet
Vložit
  • čas přidán 15. 10. 2022
  • In this video we refactor our Kafkajs implementation to follow SOLID design principles and also implement error handling mechanisms like a retry & dead letter queue.
    GitHub Repo: github.com/mguay22/nestjs-kafka
    Kafka Quickstart: kafka.apache.org/quickstart
    Original Tutorial: • Nest.js + Kafka Tutori...
    Nest.js Starter Repo: github.com/mguay22/nestjs-sta...
    Nest.js MongoDB Tutorial: • Setup MongoDB With Nes...
    Timestamps
    0:54 Introduction
    4:10 Project Setup
    5:30 Consumer Refactor
    21:52 Producer Refactor
    32:10 Retries
    35:40 Dead Letter Queue
    Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
  • Věda a technologie

Komentáře • 29

  • @mguay
    @mguay  Před 5 měsíci

    Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

  • @gitlit5489
    @gitlit5489 Před rokem +9

    your videos are super cool, informative and entertaining, please don't stop

  • @antoniomorga1824
    @antoniomorga1824 Před rokem +1

    This is an amazing tutorial!! So direct and clear, keep it up!!

  • @damaroro
    @damaroro Před rokem

    dude this crash course is great, please keep posting educational programming videos, this kind of content make youtube better !

  • @kirakira160
    @kirakira160 Před rokem +1

    happy to see you Sir ! Please Dont stop videos

  • @andresfcuellarc
    @andresfcuellarc Před rokem

    So great! amazing as allways!

  • @AliAhmad-nn3mr
    @AliAhmad-nn3mr Před rokem

    you are awesome, your vides are out of the box

  • @peonola300
    @peonola300 Před rokem

    %100 would purchase a comprehensive nestjs/microservices course! Just an idea.

  • @dglsromero
    @dglsromero Před rokem

    great tutorial... Dont stop...

  • @AnlGUNDAL
    @AnlGUNDAL Před rokem

    Dude, you'r super good. Thank you so much.

  • @mitchross2852
    @mitchross2852 Před rokem

    oh nice you really did follow up!

  • @QuangLe-hf3qd
    @QuangLe-hf3qd Před rokem

    Very cool video 🙏

  • @himesh_89
    @himesh_89 Před rokem

    Whoa, thanks for sharing.

  • @akeebismailoyindamola4879

    this is a Great video
    but I've a question, why is this Kafka module approach better than the nestjs kafka client module?

  • @zulfikarisnaen7383
    @zulfikarisnaen7383 Před rokem +1

    Thank you!

  • @DuyTran-ss4lu
    @DuyTran-ss4lu Před rokem

    Suoer cool!

  • @TharinduPerera-pc1ir
    @TharinduPerera-pc1ir Před rokem

    I was wondering if you could do an Iac video with helm charts and values? Thanks.

  • @TheWalrus_45
    @TheWalrus_45 Před 2 měsíci

    Hi Michael, now that KafkaJS is no longer maintained, do you think you could do a follow up video showing how to switch to either node-rdkafka or confluent-kafka-javascript?

  • @weavers-construction-solutions

    can you apply the same refactoring to the kafka microservice tutorial as it will help us a lot, thank you

  • @sohailsiddique8567
    @sohailsiddique8567 Před rokem

    Sir you are amazing ❤ love from pakistan 🇵🇰

  • @oyinlolaolasunkanmi
    @oyinlolaolasunkanmi Před 11 měsíci

    Thanks

  •  Před rokem

    Does not Nestjs or kafka provide a built in retry config?

  • @SAMEERSHAIKH-dw8rg
    @SAMEERSHAIKH-dw8rg Před rokem

    How can we use the dlq later on ?

  • @rajibkuet07
    @rajibkuet07 Před 10 měsíci

    In this pattern you created the instance of Kafka twice, one in producer class and another in consumer class with same brokers. I do not get it. Could you please clear me this!

  • @TheWalrus_45
    @TheWalrus_45 Před rokem

    Hi Michael, Great video! Quick Question: When would you trigger the processing of the DLQ?

    • @mguay
      @mguay  Před rokem

      Hey Paul, thanks for your support. I'm assuming you're asking when would you actually deal with messages inside of the DLQ. This is actually a really good question that depends large on the nature of your consumer, I.e, is it idempotent? One strategy is to have a CRON job that continually checks the DLQ for any messages and replays them back onto the topic up to a certain number of times.
      However I think this is a great question and open to suggestions.

  • @TheWalrus_45
    @TheWalrus_45 Před rokem

    Thanks!

    • @mguay
      @mguay  Před rokem

      Thank you so much!