﻿# A RabbitMQ dead-letter cycle can drop the intended retry

RabbitMQ detects dead-letter cycles and can drop a message when the whole cycle contains no rejection. Review routing and death reasons before treating a retry loop as durable.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/rabbitmq-dead-letter-cycle-drop/
Language: en

## The message never returns to the worker

A broker topology routes expired messages through a dead-letter exchange and back toward their source queue. The designer expects every message to circulate until a worker recovers. A cycle without a rejection can instead be detected and dropped by RabbitMQ.

The [dead-letter guide](https://www.rabbitmq.com/docs/dlx) explicitly documents this condition. A diagram containing a loop is therefore not proof of durable delayed retry, even when every queue and exchange exists.

## Reconstruct actual routing

Record source queue, dead-letter exchange, effective dead-letter routing key and target bindings. If no specific key is set, the documented reuse of original routing information can create an unintended return path, including through the default exchange.

Follow the concrete message rather than only the declaration template. Policies and queue arguments can differ across existing queues. A successful publication to an exchange does not establish that the intended next queue received the message.

## Preserve the reason for every hop

Dead-lettering can arise from rejection, expiry, queue length or a delivery limit. The cycle rule depends on the absence of rejection across the cycle, not simply on the number of times a worker logged an error.

The guide describes compressed death history grouped by queue and reason. Preserve those fields as event summaries, not a complete uncompressed chronological list. A header that omits a detailed individual hop does not automatically mean that hop never occurred.

## Keep safety and retry policy separate

The [quorum-queue reference](https://www.rabbitmq.com/docs/quorum-queues) describes its dead-letter guarantees and supported retry behavior. Queue type, configured strategy and deployed version matter; a facility documented for quorum queues must not be attributed to every queue.

Cycle detection is also separate from whether a dead-letter transfer is confirmed. Correcting one routing loop does not by itself prove safe transfer during a target outage. Review the actual delivery guarantee instead of using the presence of a DLX as a universal durability claim.

## Acceptance for the retry topology

Use an isolated queue set with a bounded identifiable message. Test a cycle driven only by broker conditions and a deliberate consumer-rejection path, observing the documented outcome. Reconcile source, target, death reason and terminal status rather than declaring success from a lower source depth.

[Failure classification](/journal/guide-ks-job-pod-failure-policy/) explains why retry intent needs trustworthy signals. [Operation deduplication](/journal/provider-post-retry-idempotency-ledger/) explains why eventual redelivery still does not authorize duplicate external effects.

## Give irrecoverable messages an explicit outcome

A retry topology needs a terminal disposition and an owner for work that cannot safely continue. Disappearance from a queue must not silently become business success. The accepted design identifies which cycles are possible, where rejection occurs and what evidence remains when the broker drops or dead-letters a message, without assuming an infinite loop preserves accepted work.
