gpt4 book ai didi

RabbitMQ 死信交换 - 通过 "x-death.reason"或 "x-first-death-reason" header 路由

转载 作者:行者123 更新时间:2023-12-04 03:52:03 26 4
gpt4 key购买 nike

我正在尝试设置 RabbitMQ 以根据死亡原因通过死信交换路由消息(“x-death.reason”或“x-first-death-reason”都可以)。
我的理解是,当消息被发送到 DLX 时,“x-death.reason”和“x-first-death-reason”被设置为标题。所以我的理由是我应该能够与 type=headers 建立交流。能够通过这些 header 的值进行路由。
不幸的是,我无法让它工作。
DLX 的设置如下
dead letter queue setup
然而,每条死消息都会被路由到 全部 的绑定(bind)队列。
target queues
即过滤/路由不起作用。
有人可以让我知道如何正确配置它。
谢谢

最佳答案

发件人:https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchange-headers

Note that headers beginning with the string x- will not be used to evaluate matches.

关于RabbitMQ 死信交换 - 通过 "x-death.reason"或 "x-first-death-reason" header 路由,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64311784/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com