I am writing a Kafka streams application using Spring cloud stream kafka streams binder.
While the consumer publishes message to a output topic, there may be an error like Serialization error or Network error.
In this code -
@Bean
public Function<KStream<Object, String>, KStream<Object, String>> process() {
return (input) -> {
KStream<Object, String> kt = input.flatMapValues(v -> Arrays.asList(v.toUpperCase().split("\\W+")));
return kt;
};
}
Here while producing the message back to the output topic if an error occurs, how to handle it. Is there any mechanism in Kafka streams binder other than RetryTemplate ?