Handling exceptions in Kafka streams
Had gone through multiple posts but most of them are related handling Bad messages not about exception handling while processing them. I want to know to how to handle the messages that is been received by the stream application and there is an exception while processing the message? The exception could be because of multiple reasons like Network failure, RuntimeException etc., Could someone suggest what is the right way to do? Should I use setUncaughtExceptionHandler ? or is there a better way? How to handle retries? Thanks in advance!! it depends what do you want to do with exceptions on