Configure RabbitMQ dead-letter exchanges for failed messages

domain: rabbitmq.com · 5 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified 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

Publish messages to RabbitMQ reliably using publisher confirms and configure consumers with prefetch and a dead-letter exchange
rabbitmq · 6 steps · unrated
Route events using AWS EventBridge rules with automatic retries and a dead-letter queue for failed targets
aws-eventbridge · 6 steps · unrated
Consume messages from AWS SQS reliably using visibility timeout, a dead-letter queue, and idempotent processing
aws-sqs · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

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