Does AMQP have a default queue to send messages that don't match any bindings in the exchange?

StackOverflow https://stackoverflow.com/questions/21150947

  •  28-09-2022
  •  | 
  •  

Question

I have a producer that will produce to an exchange for a given key. Sometimes the key may not be have a binding yet, so I'd like the message to go to a default queue. Is there any way to specify for an exchange where to put a message if there are no matching bindings?

Does AMQP, or RabbitMQ, offer any such ability for a default queue for non-matching messages? Is there a pattern for this that I could exploit if not?

Was it helpful?

Solution

I guess Alternate Exchanges is what you are looking for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top