Configure RabbitMQ dead-letter exchanges for failed messages

domain: rabbitmq.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Declare a dead-letter exchange (DLX) as a normal exchange (direct or fanout) and a corresponding dead-letter queue bound to it
  2. When declaring the primary queue, set the x-dead-letter-exchange argument to the DLX name and optionally x-dead-letter-routing-key
  3. Messages are dead-lettered on nack with requeue=false, rejection, or TTL expiry; no extra code is needed on the consumer side
  4. Optionally set x-message-ttl on the primary queue so unacknowledged or unprocessed messages expire and flow to the DLX automatically
  5. Consume from the dead-letter queue for inspection, alerting, or manual replay into the primary queue

Known gotchas

Related routes

Configure RabbitMQ quorum queue x-delivery-limit to automatically dead-letter poison messages after N delivery attempts
rabbitmq.com · 6 steps · unrated
Configure a RabbitMQ alternate exchange to capture unroutable messages instead of silently dropping them
rabbitmq.com · 6 steps · unrated
Publish messages to RabbitMQ reliably using publisher confirms and configure consumers with prefetch and a dead-letter exchange
rabbitmq · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans