Video in progress

The checkout flow passes through 7 services. If each service has its own SLO, how do you set the SLO for the whole flow and split it across teams?

The user experiences the flow SLO, not the service SLOs. With serial synchronous dependencies, availability multiplies: seven 99.9% services together give ~99.3%. So I start from the flow SLO: I set tighter targets for the services on the critical path, or reduce the synchronous dependencies through architecture.

📖 Answer

I start with the math: if checkout calls 7 services one after another synchronously on every request, and each is independently 99.9%, the flow is about 0.999^7 ≈ 99.3%. So every team can meet its own SLO while the flow still misses 99.9%.

My approach:

  1. The flow SLO comes first: "99.9% of users who click checkout get a successful response within 2 seconds". It is measured at the flow's entry point (the gateway or BFF) and agreed with the product team.
  2. Map the critical path: from trace data I find which services are actually on the synchronous path. Often 3-4 of the 7 are critical, and the rest (recommendations, analytics) are async or can degrade.
  3. Split the budget: tighter targets for the critical services than for the flow (99.95-99.99%), looser ones for the non-critical, but a fallback is mandatory for them: if the recommendation service goes down, checkout continues without recommendations.
  4. Fix it with architecture: sometimes the numbers don't add up, and the answer is not an SLO but a design change: retry + idempotency, a cache, replacing a synchronous call with an event, or calling two dependencies in parallel.

The organizational side matters more: you write down which SLO depends on which, and if a downstream team lowers its SLO, the upstream teams need to know. For every critical service I require a list in the service catalog of "who depends on me and what SLO they expect". The same logic works for latency, except that p99s don't add up across serial calls, so you need to measure flow latency directly at the entry point.