# SLA, SLO and error budgets explained

Source: https://systemdesignsim.com/system-design/sla-slo-error-budgets

System design · Service objectives, nines and error budgets

An SLI measures service behaviour, an SLO sets a target for it, and an SLA is an agreement with consequences for missing its terms. The error budget is the bad service the SLO permits in its window. A good answer starts with a user action and a counting rule, then ties it to architecture and release decisions.

Updated October 28, 2026 · 5 min read

[Calculate: availability nines](https://systemdesignsim.com/learn/availability-nines)

![SLA, SLO and Error Budgets architecture diagram](https://systemdesignsim.com/diagrams/sla-slo-error-budgets-system-design-diagram.svg)

Eligible requests become indicator counts, an objective defines the allowed failures, and budget consumption drives an operational response.

## The short version

* SLI is what you observe, SLO the target, SLA an agreement with terms and remedies.
* Write the denominator first: eligible events, what makes one good, and where you observe it.
* 99.9% over 30 days allows 43.2 minutes, or 1,000 bad events per million requests.
* Add event counts before dividing; don't average regional percentages.
* Burn rate is observed failures over the allowed rate. Alert on several windows.

## Clarifying questions to ask first

* Which user action matters? (Assume checkout: a valid purchase gets a correct response within a latency threshold.)
* What counts as a failure? (Assume errors, timeouts and incorrect successes; invalid requests excluded by a documented rule.)
* Which window? (Assume a rolling 30-day SLO, separate from any customer agreement.)
* One region or many? (Assume several, so we need fleet and regional views.)
* Who acts when the budget runs low? (Assume the team agrees a release policy and an incident owner before the first breach.)

## SLI versus SLO versus SLA

Google's SRE chapter on service-level objectives distinguishes these terms: https\://sre.google/sre-book/service-level-objectives/. The same percentage can mean successful requests, available time intervals or completed workflows.

| Term | Question it answers | Illustrative checkout definition                                   |
| ---- | ------------------- | ------------------------------------------------------------------ |
| SLI  | What happened?      | Good eligible purchases divided by all eligible purchases          |
| SLO  | What should happen? | Assume 99.9% of eligible purchases are good over a rolling 30 days |
| SLA  | What was agreed?    | The separately agreed service terms, scope and remedies            |

Treat the checkout values here as teaching assumptions, not a recommendation for every product.

## Good events and valid events

An eligible event is an authorised attempt with valid purchase details, counted at the user-facing boundary. A good event succeeds correctly and meets the latency threshold, say a correct response within 500 milliseconds; 990 of 1,000 meeting it is 99%. An average latency wouldn't show whether slow requests met it.

A success response with no saved order looks healthy to a status-code indicator, and relabelling errors as invalid requests improves the ratio on paper. Google Cloud's SLI documentation distinguishes request-based and windows-based measurement: https\://docs.cloud.google.com/stackdriver/docs/solutions/slo-monitoring/sli-metrics/overview. Keep synthetic purchase probes so missing traffic doesn't become perfect service.

Prometheus explains how histogram buckets count observations against a threshold, and why aggregating precomputed summary quantiles is problematic: https\://prometheus.io/docs/practices/histograms/. If the collector disappears during an incident, missing data must not become zero errors.

## Availability nines and allowed downtime

For a time-based objective, allowed downtime is the period times the allowed bad fraction. A 30-day month is 720 hours, or 43,200 minutes. At 99.9% the bad fraction is 0.001, so 720 × 0.001 = 0.72 hours, or 43.2 minutes. At 99.99% it is 4.32 minutes.

A short failure at peak can hurt more customers than a longer one at night, and a request-based objective doesn't convert to fixed downtime without traffic assumptions. The [availability nines calculator](https://systemdesignsim.com/learn/availability-nines) lets you change the period, and [availability arithmetic](https://systemdesignsim.com/system-design/fault-tolerance#availability-arithmetic) covers dependencies.

## Request error budgets and weighted totals

1,000,000 eligible requests at 99.9% allow 1,000 bad events. After 250, 25% is used and 750 remain. In a rolling window the population changes, so the remainder is recalculated, not stored.

Add counts before dividing. One region serves 100 requests with 90 good, another 900 with 900 good. The fleet result is 990 / 1,000 = 99%; averaging the regional percentages gives 95% by weighting regions equally. Keep the regional view anyway, because a fleet objective can hide a small region's poor service.

## Burn-rate alerts

Burn rate is the observed bad fraction divided by the allowed one. If 0.1% is allowed and 1% fails, the burn rate is 10, and a sustained burn spends a 30-day allowance in 3 days; changing traffic changes the projection.

The Google SRE workbook describes multiple burn rates and windows to catch fast and slow consumption: https\://sre.google/workbook/alerting-on-slos/. Short windows react fast but are noisy; long ones keep alerting after recovery. At low traffic a few bad events make a large ratio, so page with event counts, not a bare percentage.

## Using the budget for design decisions

Agree in advance what happens when deployments consume the budget and who authorises emergency work. Google's Embracing Risk chapter describes error budgets as a way to align product change with reliability: https\://sre.google/sre-book/embracing-risk/. Stopping every change can block the fix itself.

Ask whether graceful degradation still produces a good event: browsing a cached catalogue isn't a purchase. Extra nines cost engineering and operations, so they are a product choice.

## Where it's used

* [Fault tolerance](https://systemdesignsim.com/system-design/fault-tolerance): the user-facing objective decides which dependency failures matter.
* [Metrics monitoring](https://systemdesignsim.com/system-design/metrics-monitoring): collect good and total events with compatible labels.
* [UPI payments](https://systemdesignsim.com/system-design/upi-payments): decide whether a pending payment is a good event for the user promise.
* [Notification system](https://systemdesignsim.com/system-design/notification-system): acceptance into a queue and delivery within an interval support different objectives.

## Common traps

* Writing an SLO without a denominator. State eligible events, the good-event rule, the observation point and the period.
* Equating server uptime with customer success. The process can be alive while purchases fail.
* Averaging percentages from differently sized regions. Use event counts and inspect each region.
* Turning missing telemetry into zero errors. Mark the interval unknown and investigate.
* Using one alert window for every failure. Test short spikes, persistent low errors and recovery.

## Follow-up questions interviewers ask

* "Does 99.9% always mean 43.2 minutes?" Only under the assumed 30-day time model.
* "What if the monitoring system is down?" Mark coverage unknown, use independent evidence and fix the telemetry.
* "Should an exhausted budget stop all deployments?" Reduce risk under the agreed policy while still allowing incident repair and security fixes.

## Frequently asked questions

### What is the difference between SLA, SLO and SLI?+

An SLI is a measurement, an SLO is a target for it and an SLA is an agreement with defined terms. They can use different windows or exclusions.

### How much downtime does 99.9% allow?+

For an assumed 30-day time-based period, 720 hours times 0.001 gives 43.2 minutes. A request-based objective doesn't imply a fixed downtime without traffic assumptions.

### Can a simulator result prove a production SLO?+

No; simulator outputs are teaching estimates under a simplified model. A production SLO needs its own instrumentation, eligible-event definition, evidence and ownership.

## More system design guides

[All 76 guides](https://systemdesignsim.com/system-design)

* [Fault Tolerance explainedNines, retries, circuit breakers, chaos](https://systemdesignsim.com/system-design/fault-tolerance)
* [Design a Notification SystemQueues, provider rate limits, retries](https://systemdesignsim.com/system-design/notification-system)
* [Design a UPI Payment App like PhonePe or Google PayIdempotency, pending payments, no double debits](https://systemdesignsim.com/system-design/upi-payments)
* [Design a Metrics and Monitoring System](https://systemdesignsim.com/system-design/metrics-monitoring)
* [Serialization explainedSerialization](https://systemdesignsim.com/system-design/serialization)
* [Design a Top-K Trending ItemsStream windows, count-min sketches, candidate ranking](https://systemdesignsim.com/system-design/top-k-trending)

## Now fix it yourself.

Run the design under real traffic and see what breaks first. No signup.

[Calculate: availability nines](https://systemdesignsim.com/learn/availability-nines)
