Kafka Error Handling with Spring Boot | Retry Strategies & Dead Letter Topics | JavaTechie

preview_player
Показать описание
#JavaTechie #Kafka #SpringBoot #ErrorHandling

👉 In this Video, We will understand how to handle error in Kafka using retry and DLT (Dead Letter Topic) with Realtime example

🧨 Hurry-up & Register today itself!🧨

Devops for Developers course (Live class ) 🔥🔥:

COUPON CODE : NEW24

Spring boot microservice Premium course lunched with 70% off 🚀 🚀

COURSE LINK : Spring boot microservice course link :

PROMO CODE : JAVATECHIE50

GitHub:

Blogs:

Facebook:

Join this channel to get access to perks:

🔔 Guys, if you like this video, please do subscribe now and press the bell icon to not miss any update from Java Techie.

Disclaimer/Policy:
📄 Note: All uploaded content in this channel is mine and it's not copied from any community, you are free to use source code from the above-mentioned GitHub account.
Рекомендации по теме
Комментарии
Автор

i got interviewed today and DLT been asked, now my concept is absolutely clear, thanks for this amazing stuff 😍😍

dheereshsingh
Автор

Exceptional....eas never knowing about DLT really made my day with feeling that i learned something new today....i anyways always keep watching many of ur posted vidoes.... thanks for ur efforts for sharing ur knowledge

yogeshchaudhari
Автор

Another real time video from you sir. Thank so much sir for your hard works

vinotech
Автор

This guy literally explains everything in very simple way 👍

AvinashKumar-dip
Автор

Great work, exactly what i have been looking for, thanks a lot for the hard work in bringing this tutorial .

augustineanosike
Автор

Appreciate your efforts Basant. God bless you❤😊every week waiting for new updates…

gopisambasivarao
Автор

Thank you so much for your great work. I completed this series!

EkundayoBlessing
Автор

Thanks a lot for these amazing tutorials! I learned a lot from your videos.

GunelMammadova
Автор

Another scenario is: why not to wait for the external service to wake up so that we can resume the processing. This way we can avoid one drawback of the earlier approach. which is as follow:
for one entity we got error and we pushed it to dlt. but we got another message for the same entity and this was processed successfully. now when the dlt msgs will be processed, this will update the entity as per previous data which will create data inconsistency.

Waiting for the service to wake up will ensure two things.
1. safe guard the chronology of the events
2. no unnecessary consumption and retry and then publishing to dlt.

This is my observation. I would like to hear from you on this. Thank you sir.

satyabratasahoo
Автор

Thanks a lot on good work ! As usual this video is always informative and practical

phanimc
Автор

Excellent content... As always, thanks alot Sir.., 👍🏻

Mronline-xyz
Автор

Hi Brother: Nice video! The way you explained everything is exceptional. Keep up the great work! However, I encountered an issue where I couldn't send the message to the DLQ until I threw an error in the catch block. The existing blocking didn't trigger it, so it didn't work for me. I'm sharing this in case it helps someone with a similar problem. Also, please consider using docker-compose for Kafka in future videos.


Code I changed:
Instead of "e.printstackTrace" in catch block, I used "throw e";

manindersingh
Автор

thank you sir for your clear explanation. ..

suvarnabg
Автор

Hello, please make video on Spring Boot Hexagonal Architecture, lot of company's are using as modern development, i struggle a lot still don't understand entire structure.

sahilpatil
Автор

tq bro for ur videos providing good knowledge to us and i have questions which aske in recent ineterview asked what are locks in spring, where u have used singleton pattern in ur project, and idempotent and hope u will provide answer for this questions

Naresh-iu
Автор

thank you sir for your clear explanation. I have one question here why we are creating multiple retry topics here although we already have DLT topic to track the failure message.
Can't we reuse the same topic for retry?

nikhilkakade
Автор

@basant, please make video what is partition key and how will data process producer to partition.

atulgoyal
Автор

@Javatechie how to process messages in DLT ?

do we need another consumer to process messages from DLT?
how Kafka knows whether the message is processed or not?

muralipallapu
Автор

Hi Basanth, if possible can you please make a video on message delivery semantic like only once, atmost once, atleast once and how to avoid duplicate messages and consumer side if application is running on 2 to 3 pods. Thankyou!

sujaninekkanti
Автор

Hello. Thank you for your clear explanation. When i tired in my local machine with the Retry and DLT mentioned configurations with the spring Boot 3.3.2 + kafka(In built version 3.7.1) version the excepted output is not working. Can you please help me on that.

NagaMahesh-yu