CMD Guide
HomeSystem DesignScalable Systems (Advanced Topics)

What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples

SLI vs SLO vs SLA in one breath

These three terms tell the same reliability story at three altitudes. An SLI (Service Level Indicator) is a raw metric that measures how the service is actually behaving — uptime, latency, error rate. An SLO (Service Level Objective) is the internal target you set for that metric — for example, “99.9% uptime per calendar month.” An SLA (Service Level Agreement) is a formal, customer-facing contract that promises a level of service and spells out the consequences (usually service credits or refunds) if you miss it.

The one-line intuition: the SLI is what you measure, the SLO is what you aim for, and the SLA is what you promise. Crucially, the SLO is set stricter than the SLA on purpose, so your own alarms fire before you ever breach a contract.

diagram
diagram

The SLI: what you measure

An SLI is a carefully chosen, quantitative measure of one aspect of the service, almost always expressed as a ratio of good events to total events over a window. Typical SLIs are availability (“fraction of successful requests”), latency (“fraction of requests served under 300 ms”), error rate, throughput, or data freshness. Good SLIs are user-centric — they track something a customer would actually notice — and stable enough to trend over time. Example readings: “uptime this week = 99.97%” or “p95 latency = 250 ms.”

Time-based vs request-based SLIs

Uptime-as-time hides partial failure: an hour where 50% of requests error counts as fully “up” on a time-based SLI, yet half your users failed. The request-based form — good events ÷ total events — charges it correctly: at 1M requests/hour, a 50%-error hour spends 500,000 bad events against the budget, the same damage as 30 minutes of total downtime. Modern SRE practice states availability SLOs as request ratios over a rolling window for exactly this reason; keep time-based uptime only for externally-audited SLAs where the contract defines “down.”

How fast you are spending the budget — the burn rate — is what should page a human; see the error-budget page for the multi-window burn-rate policy (14.4×/6×/1×).

The SLO: what you aim for (and the error budget)

An SLO is a target value or range for an SLI, owned internally by product and SRE teams — for example, “99.9% of requests succeed over each calendar month.” Meeting it means you are healthy; missing it triggers alerts or a post-mortem but carries no external penalty. Because 100% is neither realistic nor cost-effective, the gap below your SLO is the error budget: at a 99.9% monthly uptime target you may be down roughly 43 minutes a month, and that budget is what you spend on deploys and maintenance. When the budget is nearly exhausted, teams slow risky changes and refocus on reliability.

The SLA: what you promise (and the penalty)

An SLA is a formal agreement with customers: “we promise this level of service; if we don’t deliver, here is what happens.” It names the committed metrics and thresholds and defines the remedy — typically service credits or refunds, and in extreme cases a right to terminate. Because breaching an SLA has real financial and legal cost, the promised level is deliberately set looser than the internal SLO. If the team’s SLO is 99.9% uptime, the SLA to customers might be 99.5%, so comfortably hitting the stricter internal goal always satisfies the contract. SLAs are the least flexible of the three: changing one usually means renegotiating the contract.

Side by side

AspectSLI (Indicator)SLO (Objective)SLA (Agreement)
DefinitionA measurable metric reflecting service performance.A target/threshold set for an SLI.A contract defining guarantees and consequences.
PurposeQuantify what is happening.Set internal reliability goals.Formalize commitments and accountability.
Example“Uptime = 99.97%”“Uptime ≥ 99.9% per month”“Below 99.5%? Refund 10% of the monthly fee.”
EnforcementMeasurement only.Internal — alerts, post-mortems, no penalty.External — credits, refunds, legally binding.
Owned byEngineering / Operations.Product / SRE.Business / Legal.
diagram
diagram

Worked example 1: a web service

You run a web service and want to manage its reliability across all three layers.

Read the 99.2% month against these lines: you missed the 99.9% SLO (internal goal blown) and breached the 99.5% SLA (customers are owed credits). Now imagine a better month at 99.7%: you still miss the 99.9% SLO — a warning that you have burned most of your error budget — but you clear the 99.5% SLA, so customers are unaffected. That gap between SLO and SLA is exactly the buffer that lets you catch trouble before it becomes a contractual problem.

Worked example 2: a SaaS uptime SLA with a credit schedule

Your company sells a B2B API. The contract guarantees 99.5% monthly uptime (the SLA), while your team runs to a stricter internal 99.9% SLO. The contract attaches this service-credit schedule to the SLA:

Measured monthly uptime (SLI)Service creditStatus
≥ 99.5%0%SLA met
99.0% to < 99.5%10%SLA breached
95.0% to < 99.0%25%SLA breached
< 95.0%50%SLA breached

Walk a bad month. The API was down for roughly 6 hours across a 30-day month. Thirty days is 43,200 minutes; 6 hours is 360 minutes down, so uptime = (43,200 − 360) / 43,200 = 99.167%. That 99.167% is the measured SLI. It sits below the 99.9% SLO (missed) and below the 99.5% SLA (breached), landing in the 99.0%-to-<99.5% tier — so the customer is owed a 10% credit.

Contrast a calmer month at 99.7% uptime: you still missed the 99.9% SLO (burning most of your error budget and triggering an internal review), but you stayed above the 99.5% SLA, so customers owe nothing. The internal target fired as an early warning well before the contract did — the customer-facing SLA credit only triggered once you fell under 99.5%.

Common pitfalls

Key takeaways

Source

Definitions and the error-budget model follow Google’s Site Reliability Engineering, Chapter 4, “Service Level Objectives” (Beyer, Jones, Petoff & Murphy, eds., O’Reilly, 2016), the canonical reference distinguishing SLIs, SLOs and SLAs.

🤖 Don't fully get this? Learn it with Claude

Stuck on What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples? Open Claude, copy a block below, and it'll teach you this exact concept — visually and interactively.

🎨 Explain it visually

Build the mental picture, not memorization.

I just read a lesson on **What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples** (System Design) and want to truly understand it. Explain What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples from first principles using ONE vivid real-world analogy and a visual mental model — draw it as ASCII art or a clear step-by-step diagram — with a concrete example using real numbers. Then ask me one question to check I got the mental picture, and wait for my reply. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🤔 Walk me through it (interactive)

Socratic — adapts to where you're stuck.

Teach me **What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples** interactively. Ask me ONE guiding question at a time, wait for my answer, and adapt to my confusion — build the idea with me step by step instead of explaining it all at once. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧪 Quiz me & fix my gaps

Active recall exposes what you missed.

Quiz me on **What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples** with 5 questions, easy to tricky, ONE at a time. Tell me if each answer is right; at the end, explain clearly what I got wrong and why. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧠 Make it stick

Intuition + hook + flashcards for long-term memory.

Help me remember **What Is The Difference Between SLI, SLO, And SLA, And Can You Give Simple Examples** for the long term: give the one-sentence intuition, a memorable hook/mnemonic, a tiny worked example, and 3 active-recall flashcards (Q -> A). If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.

📝 My notes