Nest.js & Kafkajs | Error Handling + Class Design
ฝัง
- เผยแพร่เมื่อ 20 ต.ค. 2024
- 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/mgu...
Kafka Quickstart: kafka.apache.o...
Original Tutorial: • Nest.js + Kafka Tutori...
Nest.js Starter Repo: github.com/mgu...
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.de...
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
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
%100 would purchase a comprehensive nestjs/microservices course! Just an idea.
This is an amazing tutorial!! So direct and clear, keep it up!!
this is a Great video
but I've a question, why is this Kafka module approach better than the nestjs kafka client module?
So great! amazing as allways!
you are awesome, your vides are out of the box
Dude, you'r super good. Thank you so much.
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?
great tutorial... Dont stop...
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!
oh nice you really did follow up!
Sir you are amazing ❤ love from pakistan 🇵🇰
can you apply the same refactoring to the kafka microservice tutorial as it will help us a lot, thank you
Whoa, thanks for sharing.
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.
How can we use the dlq later on ?
Thank you!
Does not Nestjs or kafka provide a built in retry config?
I was wondering if you could do an Iac video with helm charts and values? Thanks.
Very cool video 🙏
Suoer cool!
Thanks
Thanks!
Thank you so much!