stackbook.io
🔍
← Back to Syllabus
Day 1Level 3 — Operating Reliably

SLIs, SLOs, and Error Budgets

Learn: 30 minMap: 25 minDesign: 45 min

Core Concepts (5)

  • 1.An SLI is a measurement, an SLO is a target for it
  • 2.Users feel latency and errors, not CPU graphs
  • 3.No service needs 100 percent availability
  • 4.An error budget turns reliability into a shared spending decision
  • 5.Targets should be revisited as the product changes

Map to Your Experience

Think of a service you rely on. When did it feel broken to you, and what number would have captured that feeling?

Design Brief: Set SLOs for a Checkout Service

Learn

Reliability work fails when it begins with vague goals such as be very stable. It succeeds when it begins with measurement. A service level indicator, or SLI, is a measured quantity that reflects user experience, for example the share of checkout requests that succeed, or the share served faster than 400 milliseconds. A service level objective, or SLO, is the target for that indicator over a time window, such as 99.9 percent over 30 days.

Choose indicators from the user's side. Server load and memory are useful for diagnosis, but a user cannot feel them. Good SLIs usually cover availability, latency, and correctness, and are measured as a ratio of good events to total events. Measure as close to the user as practical, such as at the load balancer or in the client.

No system should aim for 100 percent. Each extra nine costs far more than the one before and slows change. Instead, pick a target that matches what users genuinely need and can tolerate. A target of 99.9 percent allows about 43 minutes of failure in a month. That allowance is the error budget.

The budget makes reliability a shared decision. While budget remains, the team can ship quickly and take reasonable risks. When it is spent, the policy shifts effort toward stability: slow releases, fix the top causes of failure, and review the cause. Write this policy down and have product leadership agree to it in advance, so it is not renegotiated during a crisis.

Alert on budget consumption rather than on every blip. A burn rate alert fires when the budget is being spent fast enough to run out early, which links paging to real user impact and cuts noise. Revisit SLOs each quarter, because a target that was right for a small launch may be wrong for a mature product.

Map

Take a product you know and write three SLIs from the user's viewpoint. For each, say where you would measure it and what a good-event versus bad-event means. Compute how many minutes of failure a 99.9 percent monthly target allows.

Design

Write the SLO document for the checkout service: SLIs, targets, window, the error budget policy, and the burn rate alerts you would configure. State who must agree to the policy and why.

Requirements

  • •Choose at least 3 SLIs tied to user experience
  • •Set SLO targets with a measurement window
  • •Write what happens when the budget runs out

Constraints

  • •Business wants as reliable as possible
  • •Engineering has limited on-call capacity

Must Cover

slislo-targeterror-budget-policy

Trade-off Axis

reliability vs feature velocity

Referenced Patterns

Competencies Advanced

reliability ops → L3requirements constraints → L3

Ready to Design?

Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.

Open in Studio →