Exchange equivalent to switch with default #8186
-
Hi all I'm trying to route a message in a way similar to a switch statement. If there's a matching binding I need it routed there, of course, but if -and only if- there's not I'd have it routed to a "default" queue instead of it getting discarded. That's a behaviour similar to a switch, like the following pseudocode:
From my understanding, the topic and header exchange types come close to this, but don't have any provision for the "default" (i.e. not matching anything else) case. Is there any way or at least workaround to achieve that? Many thanks and regards, Jim |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Alternate exchange can do this: https://www.rabbitmq.com/ae.html |
Beta Was this translation helpful? Give feedback.
Alternate exchange can do this: https://www.rabbitmq.com/ae.html