{"id":"9ad3689e-9807-4beb-923d-2967ceb727d3","task":"Configure RabbitMQ quorum queue x-delivery-limit to automatically dead-letter poison messages after N delivery attempts","domain":"rabbitmq.com","steps":["Declare the quorum queue with the x-delivery-limit argument set to the maximum number of delivery attempts: channel.queue_declare('work-queue', arguments={'x-queue-type': 'quorum', 'x-delivery-limit': 5})","Declare a dead-letter exchange and bind it to a dead-letter queue before declaring the source queue; set x-dead-letter-exchange on the quorum queue to route rejected messages","Optionally set x-dead-letter-routing-key to control the routing key used when the message is dead-lettered","Confirm that consumers nack (with requeue=true) or return (via basic.reject with requeue=true) on transient failures; the delivery count is incremented on each redeliver","Once x-delivery-limit is reached, RabbitMQ automatically dead-letters the message without further consumer involvement","Monitor the quorum queue's dlx_message_count metric via the management HTTP API to track poison message accumulation"],"gotchas":["x-delivery-limit is a quorum queue-only feature; classic queues do not support it and will ignore the argument — verify queue type before relying on this behaviour","The delivery count is tracked per-message in the quorum queue's Raft log; messages that are acked and later requeued (e.g. via shovel) start with a fresh delivery count of 0","Setting x-delivery-limit=0 means messages are dead-lettered on first delivery failure; test carefully in staging as misconfigured consumers can drain the queue into the DLX immediately"],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9ad3689e-9807-4beb-923d-2967ceb727d3"}