﻿# At-least-once dead lettering retains pressure in the source queue

A quorum source retains dead-lettered messages until target confirms. An unavailable destination can therefore exhaust source capacity even after normal consumers drain it.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/rabbitmq-atleast-once-dlx-source-retention/
Language: en

## Normal consumers finish but the source remains full

A quorum queue's ordinary consumers drain their available work, yet the source still reaches capacity. Dead-lettered messages retained for an unavailable target can explain the remaining pressure. Under the at-least-once strategy, transfer is not complete until the target side confirms acceptance.

The [quorum-queue guide](https://www.rabbitmq.com/docs/quorum-queues) states that these retained messages remain live and contribute to source resource limits. A dashboard limited to ordinary consumable backlog can therefore miss the reason publication is being rejected.

## Verify the actual strategy

Record queue type, effective dead-letter strategy, overflow policy and configured exchange. The documented at-least-once path requires reject-publish rather than drop-head. Merely declaring a DLX does not establish this guarantee.

The [DLX guide](https://www.rabbitmq.com/docs/dlx) describes the contrasting unconfirmed transfer behavior. A change in strategy can trade loss risk for retained pressure. Label that tradeoff explicitly instead of reporting all dead-letter configurations as equivalent durable isolation.

## Follow the target acknowledgement boundary

The source's internal dead-letter consumer republishes work and waits for publisher confirms from target queues. Missing exchanges, unroutable messages or a target that cannot confirm can prevent removal from the source.

The [confirmation guide](https://www.rabbitmq.com/docs/confirms) separates broker acceptance from consumer processing. A transfer confirm does not prove that the target's business handler completed the job. Keep source transfer, target storage and final application outcome as different states.

## Preserve capacity and duplicate behavior

The quorum reference warns that retries can produce duplicates at targets. A recovered destination therefore needs the operation's duplicate-safe processing contract. A single message identifier in a log does not create that property automatically.

Track retained dead-letter count, source admission failures and target progress together. Increasing the source limit only postpones pressure if the target remains unusable. It is not proof that accepted work has gained a functioning recovery path.

## Do not clear pressure by silently changing guarantees

The documented change from at-least-once to at-most-once, including an indirect change through overflow policy, can delete unconfirmed dead-lettered messages. Review that as a potentially destructive disposition decision, not harmless tuning of a stuck queue.

In an isolated fixture, make a target unavailable, observe source retention, restore the target and reconcile duplicates and confirms. [Backpressure ownership](/journal/frontier-swarm-external-tool-backpressure/) explains the wider admission problem. [Duplicate-safe outcomes](/journal/provider-post-retry-idempotency-ledger/) explains the application requirement after retransmission.

## Acceptance for recovered delivery

Accept recovery when retained source obligations reach the intended target outcome, source headroom returns and unresolved business jobs remain visible. A falling source depth alone can also result from a weakened strategy or deletion. Preserve the strategy, routing and confirmation evidence with the result so pressure relief is not mistaken for successful delivery when it was actually abandonment.
