spring-cloud / spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Apache License 2.0
331 stars 301 forks source link

Question: how to send messages to multiple topics? #1167

Closed benkeil closed 2 years ago

benkeil commented 2 years ago

I want to send messages to multiple topics at once (no branching), how can I do this with spring cloud stream?

sobychacko commented 2 years ago

I assume you are using Kafka Streams binder since you mentioned branching. You can use StreamBrdige to programmatically send to multiple topics. StreamBridge allows you to configure your bindings with Kafka topics.

sabbyanandan commented 2 years ago

@benkeil: Please use StackOverflow for questions going forward.