Skip to content

EventBus: dead-letter queue for poison messages #82

Description

@adedw

What to build

On BasicNack(requeue: true) a poison message loops forever. Add a dead-letter policy: declare email-sender with x-dead-letter-exchange + a separate DLQ; transient errors requeue, permanent failures dead-letter. Use the x-death header count to decide requeue vs dead-letter.

Acceptance criteria

  • email-sender queue is declared with a dead-letter exchange and a dedicated DLQ.
  • A permanently failing message dead-letters exactly once (no infinite loop), visible in the RabbitMQ management UI.
  • Transient failures still requeue; requeue-vs-dead-letter decision uses x-death count.
  • Sits on the connection/channel layer rebuilt in EventBus: auto-reconnect RabbitMQ consumer #81 — no conflict with the reconnect logic.

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions