Prompt
I'm building a system for email and webhook retries, what queue should I use?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
For email and webhook retries, the best queue choice is usually one that supports delayed jobs, retries with backoff, idempotency, and dead-lettering.
Good options
-
Redis-based queues: good for simpler setups and fast retries
- Examples: Sidekiq / BullMQ / RQ / Celery + Redis
- Pros: easy to start, flexible retry timing
- Cons: persistence/durability is weaker than a real broker unless configured carefully
-
RabbitMQ
- Pros: strong messaging semantics, per-message TTL, dead-letter exchanges, good for retry workflows
- Cons: more operational overhead than Redis
-
Amazon SQS
- Pros: very reliable, managed, simple scaling, built-in delay queues and redrive policies
- Cons: less flexible for complex scheduling; visibility timeout model takes some care
-
Kafka
- Usually not the first choice for retries
- Better for event streaming than task retries, unless you already have Kafka and need high throughput
My practical recommendation
- If you want the simplest production-friendly choice: SQS
- If you want maximum flexibility and control: RabbitMQ
- If you want quick implementation and you already use Redis: BullMQ/Sidekiq/Celery with Redis
Important retry features to design for
- Exponential backoff with jitter
- Dead-letter queue for permanently failing jobs
- Idempotency keys so duplicate deliveries don’t cause issues
- Rate limiting per destination/domain/provider
- Visibility timeout / lease extension if processing can take time
- Payload persistence so retries still work if the original app state changes
If you’re retrying email/webhooks specifically
A common pattern is:
- enqueue job immediately
- on failure, re-enqueue with increasing delay
- after max attempts, send to DLQ / mark failed
- provide manual replay from DLQ
If you tell me your stack and scale requirements, I can recommend one queue more specifically.