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

  Рет қаралды 16,863

Java Techie

Java Techie

3 ай бұрын

#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 ) 🔥🔥:
javatechie.ongraphy.com/cours...
COUPON CODE : NEW24
Spring boot microservice Premium course lunched with 70% off 🚀 🚀
COURSE LINK : Spring boot microservice course link :
javatechie.ongraphy.com/cours...
PROMO CODE : JAVATECHIE50
GitHub:
github.com/Java-Techie-jt/kaf...
Blogs:
/ javatechie4u
Facebook:
/ javatechie
Join this channel to get access to perks:
kzbin.infojoin
🔔 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.

Пікірлер: 49
@dheereshsingh6415
@dheereshsingh6415 2 ай бұрын
i got interviewed today and DLT been asked, now my concept is absolutely clear, thanks for this amazing stuff 😍😍
@vino7tech
@vino7tech 3 ай бұрын
Another real time video from you sir. Thank so much sir for your hard works
@augustineanosike741
@augustineanosike741 3 ай бұрын
Great work , exactly what i have been looking for , thanks a lot for the hard work in bringing this tutorial .
@GunelMammadova93
@GunelMammadova93 2 ай бұрын
Thanks a lot for these amazing tutorials! I learned a lot from your videos.
@phanimc11211
@phanimc11211 3 ай бұрын
Thanks a lot on good work ! As usual this video is always informative and practical
@gopisambasivarao5282
@gopisambasivarao5282 3 ай бұрын
Appreciate your efforts Basant. God bless you❤😊every week waiting for new updates…
@KuchNahiBasAiseHi
@KuchNahiBasAiseHi 3 ай бұрын
Great work sir. Thanks again
@Mronline-xyz
@Mronline-xyz 3 ай бұрын
Excellent content... As always, thanks alot Sir.. ,👍🏻
@sahilpatil1111
@sahilpatil1111 3 ай бұрын
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.
@Javatechie
@Javatechie 3 ай бұрын
Okay sure i will do that
@yogeshchaudhari9971
@yogeshchaudhari9971 3 ай бұрын
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
@Javatechie
@Javatechie 3 ай бұрын
Glad that it helps you. Keep learning 😃
@CenturionDobrius
@CenturionDobrius 3 ай бұрын
Thanks a lot on good work !
@antonythomas9413
@antonythomas9413 12 күн бұрын
Great work❤
@rishiraj2548
@rishiraj2548 3 ай бұрын
Great thanks
@satyabratasahoo967
@satyabratasahoo967 3 ай бұрын
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.
@Javatechie
@Javatechie 3 ай бұрын
Good observation and agree with you 🙂
@karthikeyanrm3446
@karthikeyanrm3446 3 ай бұрын
Please continue the interview series. Waiting for so long ​@@Javatechie
@Javatechie
@Javatechie 3 ай бұрын
I really appreciate your interest and I will continue buddy that I need enough time for presentation and pieces of code so please help me to help you out .
@sivadara5677
@sivadara5677 3 ай бұрын
Hi Satya the data inconsistency scenario you are telling when consumer related resources are unavailable but I believe DLT error topics are usually helpful to investigate / analyse the root cause for failure messages like NPE, Array indexOutOfMemory etc..not for reprocessing the DLT messages again.
@Deepakblg97
@Deepakblg97 3 ай бұрын
Thanks a lot sir from bangalore ❤🙏
@d.ramesh1224
@d.ramesh1224 2 ай бұрын
great
@user-cz9wf2ps4z
@user-cz9wf2ps4z 3 ай бұрын
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
@Javatechie
@Javatechie 3 ай бұрын
All your doubts are already answered in the QA series video.
@mardukvassili
@mardukvassili Ай бұрын
Do you have an explanation for publisher retries?
@nikhilkakade7022
@nikhilkakade7022 2 ай бұрын
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?
@Javatechie
@Javatechie 2 ай бұрын
Yes we can override this behaviour but needs to check this configuration
@sujaninekkanti6176
@sujaninekkanti6176 2 ай бұрын
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!
@Javatechie
@Javatechie 2 ай бұрын
It's a good suggestion thanks will plan it
@riteshmallik3588
@riteshmallik3588 2 ай бұрын
what happened to DLT-topic when exception record is recorded inside it ? Do programmer need to manually retry from this topic or it is taken care by Kafka?
@pushp3593
@pushp3593 20 күн бұрын
@javatechie i have same question
@Javatechie
@Javatechie 20 күн бұрын
No you need to create another publish method to check record from DLT and process it with existing flow . But before that you need to identify why its failed first time If it's steal data then you need to discard those failed events and re process others
@bala7965
@bala7965 3 ай бұрын
please continue springboot interview series add security related questions
@Javatechie
@Javatechie 3 ай бұрын
Yes next weekend i will publish that
@lenhhoxung4741
@lenhhoxung4741 3 ай бұрын
why you don't use kraft
@mardukvassili
@mardukvassili Ай бұрын
Hey guys, I need to implement a retries when producing to Kafka and its related tests. Do you have references to accomplish this?
@Javatechie
@Javatechie Ай бұрын
I don't have video on it but the solution is straight forward you can use spring retry directly in your producer code
@mardukvassili
@mardukvassili Ай бұрын
@@Javatechie thank you for answering. I had done multiple tries but I always struggle with the test classes. At the end I stayed with producer configuration retries suggested by Kafka but still got no lucky with tests
@divergentinsights4823
@divergentinsights4823 Ай бұрын
Is the implementation and configuration same for Kafka producer ?
@Javatechie
@Javatechie Ай бұрын
No for the producer it's different
@divergentinsights4823
@divergentinsights4823 Ай бұрын
@@Javatechie can u please suggest/advise me how to do for producer part ?
@shrirangjoshi6568
@shrirangjoshi6568 3 ай бұрын
pelase add this in a playlist
@Javatechie
@Javatechie 3 ай бұрын
It is there in Kafka playlist
@tejastipre9787
@tejastipre9787 3 ай бұрын
Sir if my kafka is down if I pushed message to the consumer and using retrieval method i retry till 15mt and when kafka is start in between of 15mt so it will work?
@Javatechie
@Javatechie 3 ай бұрын
Yes in the first attempt only the consumer listens because check in consumer properties we have defined fetch type earliest
@tejastipre9787
@tejastipre9787 3 ай бұрын
Is there any retry in producer like comsumer?
@Javatechie
@Javatechie 3 ай бұрын
@@tejastipre9787 hello yes we can implement spring retry in producer side as well
@tejastipre9787
@tejastipre9787 3 ай бұрын
Thnq i did. but now my problem is if i push message from producer and i will hold execution using debug and then when I shutdown kafka and realise the debug then i started kafka again so kafka producer try to push message continuously and when i started kafka message also produced but in this case consumer does not recived these messages and error comes in console.
🚀 Apache Kafka Crash Course With Spring Boot 3.0.x | @Javatechie
4:50:16
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 26 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 94 МЛН
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,3 МЛН
Kafka retry consumer and error handling - Spring boot
14:30
Quick Learning Hub
Рет қаралды 15 М.
Kafka Streams 101: Error Handling (2023)
10:55
Confluent
Рет қаралды 10 М.
Kafka Tutorial - Spring Boot Microservices
51:29
Amigoscode
Рет қаралды 403 М.
DC Fast 🏃‍♂️ Mobile 📱 Charger
0:42
Tech Official
Рет қаралды 482 М.
Bluetooth Desert Eagle
0:27
ts blur
Рет қаралды 7 МЛН
One To Three USB Convert
0:42
Edit Zone 1.8M views
Рет қаралды 438 М.
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 988 М.