01Chapter 1: How dependencies fail: errors, slowness, and partial outagesEvery service you build calls something else: a database, a payment API, a search index, a feature flag service, an internal microservice. Each of these calls can fail, and the way it fails decides which defenses will work. This chapter describes the main failure modes and how each one spreads into 8 min read
02Chapter 2: What graceful degradation meansThis chapter defines graceful degradation and separates it from two other outcomes: failing completely and failing fast. It assumes you have built a service that calls other services or databases over a network, that you know how exceptions work in your language, and that you understand HTTP status 8 min read
03Chapter 3: Deciding what is essential and what can be droppedThis chapter assumes you have built a service that calls other services or databases over a network, you know how exceptions work in your language, and you understand HTTP requests and responses. It also assumes you know what latency and availability mean. The previous chapters described how depende9 min read
04Chapter 4: Timeouts: bounding the cost of waitingA dependency that returns an error is easy to handle. A dependency that never answers is harder, because your code waits and holds resources while it does. A timeout turns that open-ended wait into a bounded cost, and it is the first tool in this tutorial that makes a fallback possible. A fallback c8 min read
05Chapter 5: Retries with exponential backoff and jitterThis chapter assumes you know how to call a remote service from code and handle its exceptions. It also assumes you have read the chapter on timeouts, because retries only make sense once each attempt has a bounded cost.8 min read
06Chapter 6: Circuit breakers: stop calling a failing dependencyThis chapter assumes you have read the earlier chapters on timeouts and retries. You should be comfortable with exceptions in Python, with what a timeout does to a request, and with the idea that a slow dependency can be as damaging as a dead one.7 min read
07Chapter 7: Fallback strategies: cache, defaults, simplified features, alternativesThis chapter assumes you have read the earlier chapters on timeouts, retries, and circuit breakers. You should be comfortable with exceptions in Python and with the idea of a dependency that is slow, failing, or only partly available.9 min read
08Chapter 8: Bulkheads: containing failure to one part of the systemThis chapter assumes you have read the earlier chapters on dependency failures, timeouts, and circuit breakers. You should be comfortable with threads or async tasks, HTTP calls, and exceptions in Python. The code uses only the standard library.7 min read
09Chapter 9: Load shedding: protecting core functions under overloadThis chapter assumes you can build a service that calls other services over a network, you understand exceptions and HTTP status codes, and you know what latency and availability mean. It also assumes you have read the earlier chapters on timeouts, retries, circuit breakers, and bulkheads.9 min read
10Chapter 10: Making degraded behavior visible to operators and usersA fallback that works silently is only half finished. The service keeps answering, but nobody learns that a dependency is down, that responses are stale, or that a feature is missing. This chapter covers how to report degraded behavior to three audiences: the operators who run the service, the clien8 min read
11Chapter 11: Testing fallbacks with fault injectionThis chapter assumes you have read the earlier chapters on timeouts, retries, circuit breakers, and fallback strategies. You should also be able to read Python and write a basic pytest test. The examples reuse get_recommendations, call_with_retry, and CircuitBreaker from those chapters. Save8 min read