0
votes

Is dynamic routing is same as dynamic destination binding in spring cloud stream ?

Dynamic routing as per rabbit all producer published to same queue, producer configured with routingKeyExpression and consumer listener configured with bindingRoutingKey and exchange routes the message to matched bindingKey. does this can be accomplished using stream bridge or BinderAwareChannelResolver? If not how does spring manage with this in case someone wants to move from rabbit to any other broker.

1

1 Answers

0
votes

Yes this can be accomplished with StreamBridge, RoutingFunction, spring.cloud.stream.sendto.destination etc., depending on your use case which is not clear from your post, hence I am giving you everything.

You can find more information here and here for StreamBridge.

The BinderAwareChannelResolver is deprecated in favor of StreamBridge