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

  Рет қаралды 27,015

Java Techie

Java Techie

Күн бұрын

Пікірлер
@dheereshsingh6415
@dheereshsingh6415 7 ай бұрын
i got interviewed today and DLT been asked, now my concept is absolutely clear, thanks for this amazing stuff 😍😍
@yogeshchaudhari9971
@yogeshchaudhari9971 8 ай бұрын
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 8 ай бұрын
Glad that it helps you. Keep learning 😃
@AvinashKumar-d1i1p
@AvinashKumar-d1i1p 3 ай бұрын
This guy literally explains everything in very simple way 👍
@vino7tech
@vino7tech 9 ай бұрын
Another real time video from you sir. Thank so much sir for your hard works
@augustineanosike741
@augustineanosike741 9 ай бұрын
Great work , exactly what i have been looking for , thanks a lot for the hard work in bringing this tutorial .
@satyabratasahoo967
@satyabratasahoo967 9 ай бұрын
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 9 ай бұрын
Good observation and agree with you 🙂
@karthikeyanrm3446
@karthikeyanrm3446 9 ай бұрын
Please continue the interview series. Waiting for so long ​@@Javatechie
@Javatechie
@Javatechie 9 ай бұрын
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 8 ай бұрын
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.
@EkundayoBlessing
@EkundayoBlessing Ай бұрын
Thank you so much for your great work. I completed this series!
@gopisambasivarao5282
@gopisambasivarao5282 8 ай бұрын
Appreciate your efforts Basant. God bless you❤😊every week waiting for new updates…
@manindersingh6371
@manindersingh6371 3 ай бұрын
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";
@GunelMammadova93
@GunelMammadova93 8 ай бұрын
Thanks a lot for these amazing tutorials! I learned a lot from your videos.
@phanimc11211
@phanimc11211 9 ай бұрын
Thanks a lot on good work ! As usual this video is always informative and practical
@suvarnabg1056
@suvarnabg1056 20 күн бұрын
thank you sir for your clear explanation. ..
@sahilpatil1111
@sahilpatil1111 8 ай бұрын
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 8 ай бұрын
Okay sure i will do that
@Naresh-i3u
@Naresh-i3u 8 ай бұрын
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 8 ай бұрын
All your doubts are already answered in the QA series video.
@Mronline-xyz
@Mronline-xyz 8 ай бұрын
Excellent content... As always, thanks alot Sir.. ,👍🏻
@ILuvBilli
@ILuvBilli 4 ай бұрын
Nice, but why you are using Producer and Consumer separately, if we use KafkaStream then it will automatically handle both scenarios
@Javatechie
@Javatechie 4 ай бұрын
Not getting you buddy could you please add some more inputs
@m4riders
@m4riders 3 ай бұрын
Sir ji ki jai ho 🙏
@KuchNahiBasAiseHi
@KuchNahiBasAiseHi 9 ай бұрын
Great work sir. Thanks again
@nikhilkakade7022
@nikhilkakade7022 7 ай бұрын
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 7 ай бұрын
Yes we can override this behaviour but needs to check this configuration
@chandramadanakari4265
@chandramadanakari4265 Ай бұрын
😢😅😮😂
@krishnamohanmazumdar946
@krishnamohanmazumdar946 Ай бұрын
What do we do with this DLT list of data, do we address them manually or any standard solutions to perform in real time prod projects?
@Javatechie
@Javatechie Ай бұрын
You can fix and republish
@krishnamohanmazumdar946
@krishnamohanmazumdar946 Ай бұрын
@@Javatechie Thanks for quick response
@NagaMahesh-y1u
@NagaMahesh-y1u 3 ай бұрын
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.
@Javatechie
@Javatechie 3 ай бұрын
Naga can you please connect over javatechie4u@gmail.com
@nagamahesh6474
@nagamahesh6474 3 ай бұрын
Sure I will share the piece of code in the mail
@atulgoyal358
@atulgoyal358 2 ай бұрын
@basant, please make video what is partition key and how will data process producer to partition.
@Javatechie
@Javatechie 2 ай бұрын
I already explained this please checkout my kafka Playlist
@m4riders
@m4riders 3 ай бұрын
Sir ji ki jai ho
@WalrusEggman-v2w
@WalrusEggman-v2w 28 күн бұрын
Hey thanks for the video! So we have topic called for example, "myTopic" and a DLT set up like this "myTopic.DLT". It is my undertsanding that kafka will just add "-DLT" to the end of your topic name is that correct? and if so is there a way to make it add ".DLT" instead? It was a another team that named them so we have to work around that.
@CenturionDobrius
@CenturionDobrius 9 ай бұрын
Thanks a lot on good work !
@Deepakblg97
@Deepakblg97 9 ай бұрын
Thanks a lot sir from bangalore ❤🙏
@sujaninekkanti6176
@sujaninekkanti6176 8 ай бұрын
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 8 ай бұрын
It's a good suggestion thanks will plan it
@antonythomas9413
@antonythomas9413 5 ай бұрын
Great work❤
@sumitsaurav4033
@sumitsaurav4033 13 күн бұрын
as we know db throughput is comparatively low in such sceneario how can we balance consumer throughput as per db?
@mardukvassili
@mardukvassili 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
@@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
@santhu8525
@santhu8525 Ай бұрын
great bro awesome
@riteshmallik3588
@riteshmallik3588 7 ай бұрын
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 6 ай бұрын
@javatechie i have same question
@Javatechie
@Javatechie 6 ай бұрын
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
@rishiraj2548
@rishiraj2548 9 ай бұрын
Great thanks
@divergentinsights4823
@divergentinsights4823 6 ай бұрын
Is the implementation and configuration same for Kafka producer ?
@Javatechie
@Javatechie 6 ай бұрын
No for the producer it's different
@divergentinsights4823
@divergentinsights4823 6 ай бұрын
@@Javatechie can u please suggest/advise me how to do for producer part ?
@mardukvassili
@mardukvassili 6 ай бұрын
Do you have an explanation for publisher retries?
@AjitKumar-jj3bw
@AjitKumar-jj3bw Ай бұрын
Hi Sir, Could you please share the CSV file as well in the github link? Thank you in advance.
@2RAJ21
@2RAJ21 2 ай бұрын
Thank you
@d.ramesh1224
@d.ramesh1224 8 ай бұрын
great
@pradeepk6722
@pradeepk6722 4 ай бұрын
whats the difference between part1 and part2 of apache kafka course.can someone please let me know?
@tejastipre9787
@tejastipre9787 9 ай бұрын
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 9 ай бұрын
Yes in the first attempt only the consumer listens because check in consumer properties we have defined fetch type earliest
@tejastipre9787
@tejastipre9787 8 ай бұрын
Is there any retry in producer like comsumer?
@Javatechie
@Javatechie 8 ай бұрын
@@tejastipre9787 hello yes we can implement spring retry in producer side as well
@tejastipre9787
@tejastipre9787 8 ай бұрын
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.
@shrirangjoshi6568
@shrirangjoshi6568 8 ай бұрын
pelase add this in a playlist
@Javatechie
@Javatechie 8 ай бұрын
It is there in Kafka playlist
@lenhhoxung4741
@lenhhoxung4741 9 ай бұрын
why you don't use kraft
@m4riders
@m4riders 3 ай бұрын
Sir ji ki jai ho 🙏
🚀 Apache Kafka Crash Course With Spring Boot 3.0.x | @Javatechie
4:50:16
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 31 МЛН
Kafka retry consumer and error handling - Spring boot
14:30
Quick Learning Hub
Рет қаралды 16 М.
Error Handling in Kafka Producer In-Depth Intuition
16:12
Knowledge Amplifier
Рет қаралды 4,5 М.
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН