Tutorial

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

  1. What is retried
  2. The supplier
  3. The restock
  4. Tell staff when scheduled work fails
  5. Schedule it, with retries
  6. Watch it fail
  7. Bring it back
  8. Test it

SDK Reference

Schedule | AddScheduler | How retries work | Resolve a dead letter | AddLifecycleHook


Next: 10.1 What is retried