Reputation: 2195
I'm trying to use two different Kafka in the same app.
When I have only one Kafka my application.yml is:
spring:
cloud:
stream:
kafka:
binder:
brokers: kafka_broker01
zkNodes: kafka_broker01
headers: type
binders:
some-binder:
type: kafka
inheritEnviroment: true
But I don't know what to do in case I have some other Kafka server to reference in bindings:
kafka:
binder:
brokers: other_kafka_broker01
zkNodes: other_kafka_broker01
headers: type
How do I have to rearrange the properties?
Thanks in advance.
Upvotes: 0
Views: 60
Reputation: 6106
You question is too general so I'd suggest to start by looking at Multibinder samples which include several variations including Kafka. There is more information and details on multiple binder support in reference manual.
Upvotes: 2