Nest.js & Kafkajs | Error Handling + Class Design
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
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
your videos are super cool, informative and entertaining, please don't stop
This is an amazing tutorial!! So direct and clear, keep it up!!
dude this crash course is great, please keep posting educational programming videos, this kind of content make youtube better !
happy to see you Sir ! Please Dont stop videos
So great! amazing as allways!
you are awesome, your vides are out of the box
%100 would purchase a comprehensive nestjs/microservices course! Just an idea.
great tutorial... Dont stop...
Dude, you'r super good. Thank you so much.
oh nice you really did follow up!
Very cool video 🙏
Whoa, thanks for sharing.
this is a Great video
but I've a question, why is this Kafka module approach better than the nestjs kafka client module?
Thank you!
Suoer cool!
I was wondering if you could do an Iac video with helm charts and values? Thanks.
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?
can you apply the same refactoring to the kafka microservice tutorial as it will help us a lot, thank you
Sir you are amazing ❤ love from pakistan 🇵🇰
Thanks
Does not Nestjs or kafka provide a built in retry config?
How can we use the dlq later on ?
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!
Hi Michael, Great video! Quick Question: When would you trigger the processing of the DLQ?
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.
Thanks!
Thank you so much!