Delivery and retries
An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
On this page
A delivery is done when your endpoint answers with a 2xx status. Any other answer, or no answer, is a failed attempt, and the event is sent again after a pause.
Schedule
A delivery has 6 attempts: at once, then after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Your endpoint has 10 seconds to answer 2xx. After the sixth failure the event is parked.
| Attempt | Pause before it |
|---|---|
1 | None: sent at once |
2 | 1 minute after the first |
3 | 5 minutes after the second |
4 | 30 minutes after the third |
5 | 2 hours after the fourth |
6 | 12 hours after the fifth |
States of a delivery
| Status | Meaning |
|---|---|
| Your endpoint confirmed the event. | |
| An attempt failed and another one is waiting. | |
| The last attempt failed. The event is kept and is not sent again until you replay it. | |
| A parked event was sent again on request. |
Handling deliveries
- Confirm the delivery first and do the work afterwards.
- Skip an event whose
idyou already handled: a delivery can repeat. - Skip an event whose
aggregateRevisionis older than the state you hold: deliveries can arrive out of order.
After a parked event, fix your endpoint and use Replay.
The full rule: Developer guide