Why it matters
Failed bot jobs need a dead-letter path with inspection tools — infinite retries create thundering herds and duplicate side effects.
Practical steps
- Cap attempts with exponential backoff + jitter.
- After N failures, move to DLQ with the error class.
- Build a small admin command or UI to replay one message.
- Alert on DLQ depth.
- Idempotency keys so replays are safe.
Watch out for
- Auto-replay entire DLQ without rate limits.
- Dropping failed jobs with no DLQ 'to keep things simple'.