Prompt
What should I use for webhook retries and delivery logs?
Latest observation
Oct 26, 2026
OpenAI APIWeb search: off
For webhook retries and delivery logs, the best choice depends on how much reliability, scale, and operability you need. A solid default architecture is:
Recommended setup
Use:
- A durable queue / job system for retries
- A database table for delivery logs and status tracking
- Exponential backoff with jitter for retry scheduling
Good options by stack
If you’re on Node.js / TypeScript
- BullMQ + Redis for retries
- Postgres for delivery logs
- Optionally Temporal if you want very robust workflow orchestration
If you’re on Python
- Celery + Redis/RabbitMQ for retries
- Postgres for logs
If you’re on Ruby
- Sidekiq for retries
- Postgres for logs
If you want enterprise-grade workflow reliability
- Temporal is excellent for webhook delivery, retries, timeouts, and visibility
What to store in delivery logs
At minimum:
- webhook ID
- event ID
- destination URL
- request payload hash or reference
- attempt number
- timestamp
- response status code
- response body excerpt
- latency
- final state:
pending,delivered,failed,dead_lettered
Retry best practices
- Retry only on transient failures:
- timeouts
- 5xx responses
- network errors
- Don’t retry on most 4xx responses except maybe
429 - Use:
- exponential backoff
- jitter
- max retry count
- dead-letter queue / terminal failure state
- Make deliveries idempotent with a unique event ID
If you want the simplest robust approach
A very common pattern is:
- Postgres for webhook event records and delivery history
- Redis + BullMQ (or equivalent) for retry scheduling
- Prometheus/Grafana or logs for monitoring
If you tell me your stack, I can recommend a specific implementation and schema.