Video in progress

If each of five dependent services has 99.9% availability, what is the availability of the whole system, and how does that affect the design?

With serial dependencies the probabilities multiply: 0.999^5 ≈ 99.5%, which is about 3.6 hours of downtime a month, not 43 minutes. So I cut the synchronous dependencies on the critical path and turn the rest into soft dependencies.

📖 Answer

The math: 99.9% means about 43 minutes of downtime a month. With five services in a chain, 0.999⁵ ≈ 0.995, that is 99.5%, or about 3.6 hours a month. Every team met its own SLO, but the user sees five times more downtime.

With parallel (redundant) copies it works the other way: the probability that at least one of two independent 99% copies is up is 1 − 0.01² = 99.99%. But the word "independent" matters: two copies in the same region, connected to the same DB, are not independent.

This math affects the design like this:

  • Shorten the critical path. Placing an order doesn't need recommendations, analytics or email, so they move to an asynchronous event. Only what's truly needed stays in the synchronous chain.
  • Graceful degradation. If the recommendation service is down, show an empty block and still open the page. The dependency goes from "hard" to "soft" and drops out of the formula.
  • Don't demand a higher SLO than your dependencies have. If you promise 99.99%, every hard dependency under you must be better than that. If not: caching, a fallback, or lowering the promise.
  • Error budget. 99.9% is a "budget" of 43 minutes a month. When the budget runs out, you switch from new features to reliability work. This settles arguments between teams with a number.

In an interview I'd also say this: measure availability from the user's point of view (the share of successful requests), not "is the server alive". A pod can be running and return 500 for every request.