spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

Kinesis Binder, Does it have error channel behaviour

Open Sutty100 opened this issue 2 years ago • 1 comments

I'm a little unclear from the docs if the Kinesis binder does or does not support sending errors to an error channel. The Kinesis binder docs seem to imply that we should use the Spring Cloud Stream library to manage this but the SCS Lib docs say that this is now specific to the binder and to look there for how to configure. Am I correct to assume that currently the Kinesis binder does not have a mechanism to handle errors and push them to a named error channel? If that is the case is there a plan to implement this?

Sutty100 avatar May 16 '22 07:05 Sutty100

The AWS Kinesis binder is like this:

KinesisMessageChannelBinder extends
		AbstractMessageChannelBinder<ExtendedConsumerProperties<KinesisConsumerProperties>

Where its createConsumerEndpoint() does this in the end:

ErrorInfrastructure errorInfrastructure = registerErrorInfrastructure(destination,
				consumerGroup, properties);
		adapter.setErrorMessageStrategy(ERROR_MESSAGE_STRATEGY);
		adapter.setErrorChannel(errorInfrastructure.getErrorChannel());
		adapter.setBindSourceRecord(true);
		return adapter;

So, this binder has the same error handling capabilities to send to named destination error channel as it is done with other binders.

artembilan avatar May 16 '22 14:05 artembilan

Closing it since the question has been answered

olegz avatar Sep 28 '22 12:09 olegz