Black Friday: 30% off every plan through November 30. See the prices
SysDesignPrep.com
Study guide

Updated 24 October 2026

SLIs, SLOs and error budgets

Defining reliability with numbers: choosing SLIs, setting SLO targets, availability nines and what they allow, error budgets and how teams spend them, burn-rate alerting, and SLAs versus SLOs.

Reading is half of it. Now try it in an interview.An AI interviewer asks you to design a Metrics and Monitoring System, out loud or typed, and scores the answer for your level. Or watch a sample interview first, free with no sign-up to start.
Start an AI mock

Try it yourself, in a playground:Canary deploymentsBurn rate alertingCoordinated omission

"Highly available" means nothing until it has a number. Site reliability practice turns reliability into measurable targets, and it gives teams a rule for when to ship faster and when to stop and fix things. In interviews, stating non-functional requirements as SLOs, and knowing what 99.99 % actually allows, is a quick way to sound like someone who has run production systems.

The vocabulary

  • SLI (service level indicator): a measurement of user-visible behaviour, as a ratio of good events to total events. "The proportion of checkout requests that succeed in under 500 ms."
  • SLO (service level objective): the target for that SLI over a window. "99.9 % over 28 days."
  • SLA (service level agreement): a contract with customers, with consequences (credits) if broken. Set SLAs looser than SLOs, so you notice and fix problems before they cost money.
  • Error budget: 100 % minus the SLO. With a 99.9 % SLO, 0.1 % of requests may fail; that budget can be "spent" on incidents, risky deploys and experiments.

Choosing good SLIs

Measure what users experience, as close to them as practical:

Kind of serviceSLIs
Request/response APIavailability (non-5xx share), latency (share under a threshold)
Data pipelinefreshness (share of data processed within N minutes), correctness
Storagedurability, read and write availability
Streaming or pushdelivery latency, share delivered

Prefer "share of requests faster than 300 ms" to "p99 latency", because ratios add up cleanly over time and across instances. Measure at the load balancer or client where possible; server-side metrics miss requests that never arrived.

What the nines allow

SLODowntime per 30 daysPer year
99 %7.2 hours3.65 days
99.9 %43 minutes8.8 hours
99.95 %22 minutes4.4 hours
99.99 %4.3 minutes53 minutes
99.999 %26 seconds5.3 minutes

Two consequences worth saying out loud:

  • Each nine costs roughly ten times more in engineering and infrastructure. 99.99 % leaves no room for a manual response to an incident: detection and failover must be automatic.
  • Dependencies multiply: a service calling five dependencies at 99.9 % each cannot itself promise more than about 99.5 % unless it degrades gracefully when they fail.

Not everything needs the same target: login and checkout may need 99.95 %, an internal reporting page 99 %.

Error budgets in practice

The budget turns reliability into a shared decision rather than an argument:

  • Budget remaining: ship features, run experiments, take reasonable risks.
  • Budget exhausted: freeze risky launches, prioritise reliability work until the SLI recovers.

It also makes clear that 100 % is the wrong goal: a perfectly reliable service ships too slowly, and users cannot tell the difference between 99.99 % and 100 % when their own network is less reliable than that.

Alerting on burn rate

Alerting on every error spike wakes people for nothing; alerting on monthly SLO breach is too late. Burn-rate alerts fire when the budget is being consumed too fast:

  • A fast burn (for example, 2 % of the 28-day budget in one hour, a rate that would exhaust it in about two days) pages someone immediately.
  • A slow burn (for example, 10 % in three days) opens a ticket.
  • Each alert checks a long and a short window together, so it fires quickly and stops quickly when the problem ends.

This is how the monitoring system design turns metrics into useful pages.

Using SLOs in a design

  • State the important targets as SLOs in the non-functional requirements: "redirects: 99.99 % availability, p99 under 50 ms" (see Design a URL Shortener).
  • Let them drive architecture: 99.99 % implies multi-zone, automatic failover and no single region dependency; 99.9 % may allow a simpler setup.
  • Plan graceful degradation so dependencies failing do not count against the SLO (cached responses, partial results). See rate limiting and resilience.

Checklist

  • SLIs as good/total ratios, measured near users.
  • SLO targets per user journey, not one number for everything.
  • The downtime each target allows, and what it requires (automation, redundancy).
  • Error budget policy: what happens when it runs out.
  • Burn-rate alerts with fast and slow windows.
  • SLAs looser than SLOs.

Questions people ask

What is the difference between an SLI, an SLO and an SLA?

An SLI is a measurement of user-visible behaviour as a ratio of good events to total events, an SLO is the target for that SLI over a window, and an SLA is a contract with customers with consequences, such as credits, if it is broken. For example, the SLI is the share of checkout requests that succeed in under 500 ms, and the SLO is 99.9 % over 28 days. SLAs are set looser than SLOs, so problems get fixed before they cost money.

What is an error budget?

An error budget is 100 % minus the SLO: with a 99.9 % SLO, 0.1 % of requests may fail. The budget can be spent on incidents, risky deploys and experiments, which turns reliability into a shared decision rather than an argument. While budget remains, the team ships features and takes reasonable risks; once it is exhausted, risky launches freeze and reliability work takes priority until the SLI recovers.

How much downtime does 99.99 % availability allow?

A 99.99 % target allows 4.3 minutes of downtime per 30 days, or 53 minutes a year, while 99.9 % allows 43 minutes a month (8.8 hours a year) and 99.999 % only 26 seconds a month. Each extra nine costs roughly ten times more in engineering and infrastructure. At 99.99 % there is no room for a manual response to an incident, so detection and failover must be automatic.

What is burn-rate alerting?

Burn-rate alerting fires when the error budget is being consumed too fast, instead of on every error spike or on a monthly SLO breach. A fast burn, for example 2 % of a 28-day budget in one hour, a rate that would exhaust it in about two days, pages someone immediately; a slow burn, such as 10 % in three days, opens a ticket. Each alert checks a long and a short window together, so it fires quickly and stops quickly.

What makes a good SLI?

A good SLI measures what users experience, as close to them as practical, as a share of good events out of all events. For a request/response API that means availability (the non-5xx share) and latency (the share under a threshold); for a data pipeline, freshness and correctness. Prefer "share of requests faster than 300 ms" to p99 latency, because ratios add up cleanly over time and across instances, and measure at the load balancer or client where possible.

Should a service aim for 100 % availability?

No: 100 % is the wrong goal, because a perfectly reliable service ships too slowly, and users cannot tell 99.99 % from 100 % when their own network is less reliable than that. Targets should differ by user journey, for example 99.95 % for login and checkout and 99 % for an internal reporting page. Dependencies cap what is possible too: a service calling five dependencies at 99.9 % each cannot promise more than about 99.5 % unless it degrades gracefully.