Backend, Data & Security More detail C · Industry convention Platform: Web

Dead-Letter Queue

A dead-letter queue keeps messages that a source queue could not process after its allowed attempts. People can inspect the failure before a controlled retry.

See how it works
You might call it DLQdead letter queuefailed-message queue

See how it works

Original worked exampleDead-Letter Queue
State & recoveryDead-Letter Queuesource queue + receive count > limit -> DLQ + configured monitor -> alert -> inspect/fix -> controlled redrive
DELIVERY QUEUES1 isolated
email_804✓main queue continues
email_803!bad address
dead/email_803→inspect first
✓ Failure isolatedattempts: 3
KEEP SAFEKeep the failed message, reason, and attempt history together.RECOVERFix the cause, test the fix, then redrive with a limit.
source queue + receive count > limit -> DLQ + configured monitor -> alert -> inspect/fix -> controlled redriveJOB
Dead-Letter QueueBackend reliability

Another example

Import row `row-73` fails five times because its date is malformed. Amazon SQS moves the message to a DLQ. The team's configured alarm then alerts an operator. After fixing the parser, the operator redrives a small batch at a safe rate.

Main parts

  1. 01Source queue
  2. 02Attempt limit
  3. 03Failure reason
  4. 04Dead-letter message
  5. 05Alert and owner
  6. 06Inspect, fix, and redrive

Use it when

Use a DLQ when repeated failures should stop cycling through the main queue. Keep the reason, source, attempt count, message age, and a safe redrive path.

Do not use it when

Do not move a message after the first short failure, ignore a growing DLQ, or redrive before fixing the cause. Removing one item can also break a flow that requires strict order.

Name used in code

source queue + receive count > limit -> DLQ + configured monitor -> alert -> inspect/fix -> controlled redrive

Before you ship

Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.

Request you can copy

Outcome: Design or review Dead-Letter Queue for this system while keeping data correct, secure, and easy to operate. User context: Import row `row-73` fails five times because its date is malformed. Amazon SQS moves the message to a DLQ. The team's configured alarm then alerts an operator. After fixing the parser, the operator redrives a small batch at a safe rate. Technical concept or control: Dead-Letter Queue. Why it fits: Use a DLQ when repeated failures should stop cycling through the main queue. Keep the reason, source, attempt count, message age, and a safe redrive path. Do not use it when: Do not move a message after the first short failure, ignore a growing DLQ, or redrive before fixing the cause. Removing one item can also break a flow that requires strict order. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): No single official standard controls the whole term. Its meaning may change across teams, platforms, or frameworks. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.

Check this request

Review the current use of Dead-Letter Queue. Definition: A dead-letter queue keeps messages that a source queue could not process after its allowed attempts. People can inspect the failure before a controlled retry. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, report the evidence you found, gaps, severity, and the smallest safe fix.

C
How official is this term?

Industry convention

People often use this term at work. The listed sources may support practice or limitations. They do not define every part of the term.

No single official standard controls the whole term. Its meaning may change across teams, platforms, or frameworks.

Scope
Cross-platform dead-letter-queue engineering convention; Amazon SQS only supports the cited SQS redrive and retention behavior
Document status
stable
Checked on
2026-07-30

Evidence sources & scope

Authority source + Term reference · Amazon Web Services · stable Using dead-letter queues in Amazon SQS Scope: Amazon SQS dead-letter queue, redrive-policy, and retention behavior used only as context for the cross-platform dead-letter-queue convention; not a broker-neutral contract Role here: Direct term reference Source covers: canonical name, definition, platform API, implementation, usage guidance, avoidance guidance

Copy it yourself

The browser could not copy this. Select the request below and copy it yourself.