简体   繁体   English

RabbitMQ备用交换和交换以交换绑定

[英]RabbitMQ Alternate Exchange and exchange to exchange binding

RabbitMQ v3.7.8 RabbitMQ v3.7.8

(AE = alternate exchange) (AE =备用交易所)


The documentation states: 该文档指出:

Whenever an exchange with a configured AE cannot route a message to any queue, it publishes the message to the specified AE instead. 每当与配置的AE的交换无法将消息路由到任何队列时,它会将消息发布到指定的AE。

It also explains: 它还说明了:

If an AE cannot route a message, it in turn publishes the message to its AE, if it has one configured. 如果AE无法路由消息,则依次将消息发布到其AE(如果已配置)。 This process continues until either the message is successfully routed, the end of the chain of AEs is reached, or an AE is encountered which has already attempted to route the message. 此过程将继续进行,直到成功路由消息,到达AE链的末尾或遇到已尝试路由消息的AE。

I assume any queue means any queue in the chain much in the same way the AE is resolved. 我假设any queue意味着any queue in the chain中的any queue in the chain解决AE的方式非常相似。


Expect FOO_Alt to be triggered. 期望FOO_Alt被触发。

在此处输入图片说明


Expect FOO_Alt not to be triggered. 期望不会触发FOO_Alt

在此处输入图片说明


Are my expectations correct? 我的期望正确吗?

You should be correct. 你应该是正确的。 Of course, the best way to know is to try it out. 当然,最好的了解方法是尝试一下。


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow. 注意: RabbitMQ团队监视rabbitmq-users邮件列表 ,仅在某些情况下回答关于StackOverflow的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM