I am working on spring cloud stream and kafka binder for event driven application(spring cloud stream annotation is using)
I was able to handle exception at consumer side using dead letter queue .But couldn't find out any relevant document for handling persistent exception at producer side.
ie how can we handle if serialization /Size too large kind of
exception(Persistent exception) occur while sending messages.
I wanted to handle if error occur at the time of sending messages and that cant be recovered. Is there any mechanism. Please advice
I am using below code
MessageChannel messageChannel;
public void sendMessage(){
messageChannel.send(new GenericMessage<>(message))
}