Full answer
The nines
| Availability | Downtime per year | Per 30-day month |
|---|---|---|
| 99% | 3.65 days | 7.2 hours |
| 99.9% | 8.76 hours | 43.2 minutes |
| 99.99% | 52.56 minutes | 4.32 minutes |
| 99.999% | 5.26 minutes | about 26 seconds |
Each extra nine costs much more: redundancy across zones or regions, automated failover, careful deploys and on-call staff.
Dependencies multiply
If a request needs three services in a chain, each 99.9% available and failing independently, the chain is about 0.999 x 0.999 x 0.999 = 99.7%. Serial dependencies lower availability.
Redundancy raises it. Two independent replicas, each 99% available, where either can serve: 1 - (0.01 x 0.01) = 99.99%. In practice failures are often correlated (same bad deploy, same region), so real gains are smaller.
SLI, SLO, SLA
- SLI (indicator): what you measure. "Percentage of
GET /resultsrequests that return 2xx in under 300 ms." - SLO (objective): the target. "99.9% of those requests meet the SLI over 30 days."
- SLA (agreement): a contract with customers, usually looser than the SLO, with consequences such as service credits.
Measure request-based SLIs where possible ("good requests / total requests"), because "the server was up" does not mean users were served.
Error budgets
With a 99.9% SLO over a month of 10 million requests, the budget is 0.1% = 10,000 failed or slow requests. While budget remains, teams ship features. When it is spent, they slow releases and work on reliability. This turns "how reliable should we be?" into a shared, measurable rule.
Choosing a target
Pick by user impact. A results portal on result day needs high availability during that window; an internal analytics dashboard can be 99%. Users cannot tell 99.99% from 99.999% if their own network is less reliable than that.
By level
Fresher: Convert nines into downtime and define SLA, SLO and SLI with a simple example. Knowing the downtime for 99.9% and 99.99% is expected.
Mid: Compose availability across dependencies, define request-based SLIs, and explain error budgets with numbers. Expect one multiplication for chained dependencies.
Senior: Set SLOs across a service graph, discuss correlated failures, multi-region cost per extra nine, alerting on burn rate, and negotiating SLAs with dependencies. It should cover alerting on how fast the error budget is being used.
Key points
- 99.9% is about 8.76 hours per year; 99.99% about 52.6 minutes
- Serial dependencies multiply availability downward
- Redundancy helps only when failures are independent
- SLI is measured, SLO is the target, SLA is the contract
- Error budget = 100% minus SLO, used to balance speed and reliability
Common mistakes
- Confusing SLA with SLO
- Measuring uptime of a server instead of successful user requests
- Assuming redundancy failures are independent
- Setting an SLO tighter than dependencies allow
Follow-ups
- Your service depends on a 99.9% database; can you offer 99.99%?
- How would you define an SLI for a video player?
- What should happen when the error budget runs out?
Tips
- Memorise the 99.9% and 99.99% downtime figures
- Show one multiplication for serial dependencies
- Define SLI, SLO and SLA in one sentence each
Evaluation rubric
- Correct downtime arithmetic
- Explains serial and redundant composition
- Distinguishes SLI, SLO and SLA
- Explains error budgets