我不太了解死信交换/队列 . 在线文件说:
republished to another exchange when any of the following events occur:
The message is rejected (basic.reject or basic.nack) with requeue=false,
The TTL for the message expires; or
The queue length limit is exceeded.
这是否意味着当这些事件发生时,消息将自动移动到死信队列?或者我必须专门在我的代码中将那些“死”的消息移动到该DLQ?
另外我如何为正常队列设置DLX / DLQ?当我正常队列中的消息失败/过期时,它会移动到DLX / DLQ吗?
1 回答
这是一个完整的例子: