spring-cloud-stream-binder-kinesis AWS

1k views Asked by At

How can we have two AWS kinesis connections using spring-cloud-stream-binder-kinesis?

1st connection: spring application and AWS kinesis stream in the same AWS account.

2nd connection: other AWS kinesis stream sitting in a different AWS account.

Is it possible to have two different connections from a spring application to two different kinesis streams in different AWS accounts? If it is yes, How do we implement this?

1

There are 1 answers

4
Gary Russell On

See Connecting to Multiple Systems.

By default, binders share the application’s Spring Boot auto-configuration, so that one instance of each binder found on the classpath is created. If your application should connect to more than one broker of the same type, you can specify multiple binder configurations, each with different environment settings.