Skip to content

When one part of your app fails, how do you stop the failure spreading to the rest?Also calledFailure Containment Boundaries

Module
02/05Module
To read
~10 minTo read

It starts with a failure

At 2 AM, a notification service starts failing to send email, and its workers (background programs) start retrying every message. What do you think happens over the next few hours?

In the module you make your guess first, then read what happened and why.

  1. 01

    Plan how far each failure can spread

  2. 02

    Stop calling a service that keeps failing

  3. 03

    Give every queue a size limit

  4. 04

    Plan how to undo half-done work

SpecA plan for keeping failures contained

A spec for your own app, as a text file you download. The module also gives you the prompt to paste into the AI you build with (Lovable, Bolt, Replit, Cursor, Claude Code or Codex), a checklist to check what it built, and recommended skills.

  • Queues with a size limit
  • Waiting longer between retries
  • Keeping background workers apart