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
  •  | 
  •  

Domanda

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?

È stato utile?

Soluzione

I guess Alternate Exchanges is what you are looking for.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top