Skip to main content
18

SLI vs SLO vs SLA and error budgets

MediumSRESLOReliability

What's the difference between an SLI, an SLO and an SLA? What is an error budget?

TL;DR

An SLI (service level indicator) is a measurement of user experience, usually a ratio of good events to all events, such as "the fraction of requests that succeed in under 300 ms". An SLO (objective) is the internal target for an SLI over a window, such as "99.9% over 28 days". An SLA (agreement) is an external contract with customers that has consequences (credits, refunds), and it's set looser than the SLO. The error budget is 100% minus the SLO: the amount of unreliability you're allowed. At 99.9% over 30 days, that's about 43 minutes of failure. While budget remains, teams ship fast; when it's spent, they focus on reliability.

Key points

  • Measure SLIs as close to the user as possible (load balancer or client), not on internal hosts.
  • Choose SLIs per user journey: availability, latency, freshness (for data pipelines), correctness.
  • 100% is the wrong target. Users can't tell 99.99% from 100%, and chasing it stops all change.
  • Each extra nine costs far more: 99.9% ≈ 43 min a month, 99.99% ≈ 4.3 min a month.
  • Error budget policy: agreed rules in advance, such as freezing risky launches and prioritizing reliability work when the budget runs out.
  • Alert on burn rate (how fast you're consuming the budget), for example paging if 2% of the monthly budget burns in one hour.

Example

text
SLI:  good requests / total requests, where good = status < 500 and latency < 300 ms
SLO:  99.9% over a rolling 28 days
Budget: 0.1% of ~10M requests ≈ 10,000 bad requests per window
SLA:  99.5% monthly, or customers get a 10% credit

Common follow-ups

  • What if a dependency spends your budget? It still counts; users don't care whose fault it is. Add redundancy or caching, or negotiate the dependency's SLO.
  • How do SLOs help product decisions? They turn "is it reliable enough?" into a number both product and engineering agree on.

What interviewers look for

Tip

Precise definitions, SLA looser than SLO, error budget arithmetic, and how the budget shapes release decisions.

  • Red flag: "our SLO is 100%."

Was this helpful?

Related questions