Deliveries
Retries and failures
Failed messages are retried 7 times over about 8.5 hours before they are marked dead.
Overview
A try fails when your server does not reply within 10 seconds, the connection fails, or the reply is not 2xx. Redirects count as failures; they are not followed. Each message gets up to 7 tries on this schedule:
| Try | Wait after the previous try |
|---|---|
| 1 | Sent right away |
| 2 | 10 seconds |
| 3 | 1 minute |
| 4 | 5 minutes |
| 5 | 30 minutes |
| 6 | 2 hours |
| 7 | 6 hours |
That covers about 8.5 hours. If the 7th try fails, the delivery becomes dead and is not sent again.
If your server was down
- Short outages heal themselves through retries.
- For longer ones, list
status=deaddeliveries to see what you missed, then read the current state from the Cloud API, for example activity or balances.
Tips for a healthy endpoint
- Reply 2xx as soon as the event is saved, before any slow work.
- Reply 2xx to duplicates and event types you ignore. An error reply only causes retries.
- Reply 401 only for bad signatures.
- Watch stats for a growing
deadcount.