Shipping ItLesson 43 of 74

Module 5 · Staying alive: the bad day and the day after

Timeouts, retries, and the failure you made worse

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 5 of 10 in this chapter

This chapter’s goalRun the first thirty minutes of a real outage from a written runbook, and leave behind a postmortem and a handover that change what happens next time.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
A circuit breaker’s three statesClosednormal: every callgoes through, failuresare countedOpenpast the threshold:fail instantly, makeno calls, free theworkersHalf-openafter a coolingperiod, let onerequest throughSuccess closes it,failure re-opens itand the cooling periodstarts againOpen turns a thirty-second hang for every user into an instant, cheap failure. Half-open is the statepeople forget, and without it the breaker is a switch that never turns itself back on.
Open turns a thirty-second hang for every user into an instant, cheap failure. Half-open is the state people forget, and without it the breaker is a switch that never turns itself back on.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Your service is only as available as the things it calls

A handler that calls a payment provider, a mail API and a model endpoint has four ways to fail, not one. If each dependency is up 99.9% of the time and you need all of them, your ceiling is about 99.6% before you have written a single bug.

Most of the difference between a service that degrades and one that collapses is three settings and one decision. The settings are timeouts, retries and backoff. The decision is what to do when the answer never comes.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Agents and Automation exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘Timeouts, retries, and the failure you made worse’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/failing-well (Accessed: 29 November 2026).