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

Pregunta

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?

¿Fue útil?

Solución

I guess Alternate Exchanges is what you are looking for.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top