主题队列的ttl过期时RabbitMQ消息没有死信

主题队列的ttl过期时RabbitMQ消息没有死信,rabbitmq,ttl,dead-letter,rabbitmq-exchange,Rabbitmq,Ttl,Dead Letter,Rabbitmq Exchange,我有以下配置 {"rabbit_version":"3.4.3", ... "queues":[ {"name":"consumer.queue-dl","vhost":"dev","durable":true,"auto_delete":false,"arguments":{}}, {"name":"consumer.queue","vhost":"dev","durable":true,"auto_delete":false,"arguments":{"x-message

我有以下配置

{"rabbit_version":"3.4.3",

...

"queues":[
    {"name":"consumer.queue-dl","vhost":"dev","durable":true,"auto_delete":false,"arguments":{}},
    {"name":"consumer.queue","vhost":"dev","durable":true,"auto_delete":false,"arguments":{"x-message-ttl":1000,"x-dead-letter-exchange":"consumer.exchange-dl"}},
    {"name":"another-queue", "vhost":"dev","durable":true,"auto_delete":false,"arguments":{"x-message-ttl":1000,"x-dead-letter-exchange":"consumer.exchange-dl"}},
],

"exchanges":[
    {"name":"consumer.exchange-dl","vhost":"dev","type":"direct","durable":true,"auto_delete":false,"internal":false,"arguments":{}},
    {"name":"consumer.exchange","vhost":"dev","type":"topic","durable":true,"auto_delete":false,"internal":false,"arguments":{}},
    {"name":"another-exchange","vhost":"dev","type":"direct","durable":true,"auto_delete":false,"internal":false,"arguments":{}}
],

"bindings":[
    {"source":"consumer.exchange-dl","vhost":"dev","destination":"consumer.queue-dl","destination_type":"queue","routing_key":"","arguments":{}},
    {"source":"consumer.exchange-dl","vhost":"dev","destination":"consumer.queue-dl","destination_type":"queue","routing_key":"#","arguments":{}},
    {"source":"consumer.exchange","vhost":"dev","destination":"consumer.queue","destination_type":"queue","routing_key":"consumer.topic2","arguments":{}},
    {"source":"another-exchange","vhost":"dev","destination":"another-queue","destination_type":"queue","routing_key":"","arguments":{}}
]}
我在另一个队列消费者队列上设置了一个DLX,这样他们的消息就会移动到消费者。1秒后交换dl

另一个队列绑定到另一个交换(直接)时,一切正常;发送到consumer.exchange(主题)的邮件不会移动到DLX。我尝试使用DLX的路由键绑定,但没有任何效果。DLX上有关于主题呼气的问题吗


谢谢

我解决了在DLX上为消费者创建一个到DL队列的多个绑定的问题。topic2