I am writing a producer to push messages to Kinesis stream using Spring cloud stream libraries.I am able to successfully push the data to kinesis but on the kinesis side it is failing with throughput exceeded exception.Is there a way to retry pushing these messages again and know exactly which message failed ? Also, I don't want to use KPL or KCL.
I tried the solution suggested in the answer and this is my config:
spring.cloud.stream.bindings.input.producer.errorChannelEnabled: true spring.cloud.stream.bindings.input.producer.error.destination: myFooDestination.myGroup.errors
Is this the right way to do, then how to map the "spring.cloud.stream.bindings.input.producer.error.destination: myFooDestination.myGroup.errors" to "error-channel" property in the spring integration config as below?
<int-http:inbound-channel-adapter id="abcErrorChannel"
channel="defChannel"
**error-channel="errorChannel**"
</int-http:inbound-channel-adapter>