一、背景
- 使用rabbitmq-delayed-message-exchange延迟队列插件
- 设置Mandatory=true,消息无法路由。报错:NO_ROUTE
二、原因
- 官方说明
- https://github.com/rabbitmq/rabbitmq-delayed-message-exchange
解读如下:
Delayed messages are stored in a Mnesia table (also see Limitations below) with a single disk replica on the current node
延时队列的消息都是存储在磁盘中
The plugin only performs one attempt at publishing each message but since publishing is local, in practice the only issue that may prevent delivery is the lack of queues (or bindings) to route to.
Closely related to the above, the mandatory flag is not supported by this exchange: we cannot be sure that at the future publishing point in time
there is at least one queue we can route to
the o