How it works · 28 of 49 Core
What is graceful degradation in system design?
Fail partly, on purpose
Graceful degradation: A page or a response is built from several parts, and not all of them are the point. Graceful degradation decides in advance which parts are core (price, buy button) and which may fail (recommendations, reviews), and what the user sees instead: cached bestsellers, an empty slot, a simpler answer. A *hard* dependency's failure fails the whole response; a *soft* one's is absorbed. Each optional part gets a deadline, so a slow one is dropped rather than waited for. The price: a second, simpler path that is rarely used, so it must be tested on purpose, and an alert when it is on.
Loading the animation…
Say it like this Graceful degradation decides in advance which parts of a response are core and what to show when the others fail, so one broken service costs a shelf on the page instead of the whole page.
Under the hood — for builders
- The sources, in their words
- AWS Well-Architected (REL05-BP01): "When one upstream system fails, it still makes sense to display everything else instead of showing an error page to a customer." Google, Site Reliability Engineering (2016): graceful degradation "takes the concept of load shedding one step further by reducing the amount of work that needs to be performed."
- Words
- Hard dependency: if it fails, the response fails. Soft dependency: if it fails, the response goes out without it. Fallback: what is shown instead (cached, default or nothing). Deadline: how long a soft call may take.
- The page in our run
- Five calls made in parallel for every page. Failure rates and latencies are ours, chosen to look like a busy shop:
- Run here: pages that failed
- 100,000 page loads per run. With every call hard, any failure fails the page; with soft calls, only price or cart can:
- Run here: the slowest page in a hundred
- The page waits for its slowest call. 99th percentile, ms:
- Fallbacks, simplest first
- Hide the section · a static or cached version (bestsellers) · a default value · a cheaper computation (Google: "a less-accurate (but faster) ranking algorithm").
- Measure it
- Share of pages served degraded, per section · time spent in degraded mode · revenue with each section missing.
- Watch out
- AWS: fallback paths "should be significantly simpler than the primary pathway". Google: "shouldn't trigger very often", and test it, because "the code path you never use" often doesn't work. Our run is a toy.
- Sources
- AWS Well-Architected, Reliability pillar, REL05-BP01 · Google, Site Reliability Engineering, "Addressing Cascading Failures", 2016 · both read in session · page simulation, Python, 19 Nov 2026.
What happens in the graceful degradation animation, step by step?
Recommendations as a hard or soft dependency: Hard
- A product page is built from five services. Each section hangs on a call to its own service.
- Recommendations go down. As a hard dependency its error fails the whole page: no price, no buy button, no sales.
- Your turn: flip the switch, top right, to make recommendations a soft dependency.
Recommendations as a hard or soft dependency: Soft
- Soft dependency: everything else stays, and the empty shelf becomes a cached bestsellers card. The buy button stays lit.
- Each optional section gets a deadline. Reviews too slow? After 300 ms the page ships without them.
- Decide which sections are core: price and the buy button. That is a business decision as much as a technical one.
- Keep the fallback simple and use it often: the code path you never use is the one that doesn't work. Next: the model is one box of many.
What everyday example explains graceful degradation?
A restaurant out of one dish still serving dinner.
Why should a team care about graceful degradation?
Every page that shows "something went wrong" because a widget failed is a design choice nobody made. Choosing the core parts first turns most outages into a missing shelf.