Sidath
Sidath

Reputation: 1

spring-cloud-stream-binder-kinesis AWS

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?

Upvotes: 0

Views: 1116

Answers (1)

Gary Russell
Gary Russell

Reputation: 174729

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.

Upvotes: 0

Related Questions