10. Failures, retries and dead letters
The stock report and the low-stock check never fail: they read a table. In this chapter Shopfront restocks from a supplier, which is somebody else's system and goes down. A restock that fails is tried again a little later, then a little later still, and when it has failed enough times it stops, is set aside as a dead letter, and staff are told. Once the supplier is back, a member of staff sends it round again from the console.
This chapter starts from the end of chapter 9.
In this chapter
- What is retried
- The supplier
- The restock
- Tell staff when scheduled work fails
- Schedule it, with retries
- Watch it fail
- Bring it back
- Test it
SDK Reference
Schedule | AddScheduler | How retries work | Resolve a dead letter | AddLifecycleHook
Next: 10.1 What is retried