Skip to the guide

Degrading gracefully: what to switch off when things break

IntermediatePattern5 pages

When a sensor fails, a modern car's engine computer switches to a safe mode often called limp mode. It caps the speed and turns off the air conditioning and other comforts, but keeps the brakes and steering working, while a light on the dashboard tells the driver something's wrong. Engineers decided at the factory which systems give way first, so nobody has to choose at the roadside.

The car is your product, the brakes and steering are the core path users can't do without, such as checkout, and the comforts are optional features like recommendations and reviews. The engine computer is the code that notices a failing dependency through timeouts and circuit breakers, the capped speed is shedding load, and the dashboard light is what the page tells users. The factory's choices are degradation planned in advance, behind switches you can flip without a deploy. Interviewers ask "what happens when this is down?" about every box you draw, and listen for a planned answer per dependency rather than "it retries". The move: rank features by how much users need them, give each dependency a fallback cheaper than the normal path, and decide in advance what switches off first.