If you have ever watched a deployment API return success while engineers keep asking whether their release has finished, you have seen the gap between a running service and a useful one.
The problem is an unwritten contract about outcomes. Welcome to System Design for DevOps and Platform Engineers: by the end of this opening part, you will be able to translate a journey into availability, latency, durability, freshness and recovery constraints, then use them to assess architectures and write non-goals.
My example is Shipyard, an internal deployment service. Shipyard, its traffic and every target below are made up. Assume 200 product teams submit 40,000 authorised, well-formed deployment requests in a rolling 30-day window, concentrated in weekday release bursts.
1. Start with the journey, not the architecture
Three actors experience Shipyard differently:
- An application engineer, usually through CI, submits an immutable artefact digest and environment. They need a durable deployment ID quickly, then a truthful terminal result.
- The engineer or service owner watches the rollout. They need status to follow the target cluster closely enough to act.
- The platform on-caller needs accepted work and audit decisions to survive faults, and needs a restored control plane after a regional disaster.
The application’s end users matter, but Shipyard does not own their request latency or application correctness. That boundary belongs to the service team. Shipyard owns the control-plane outcomes above.
A useful journey names the actor, trigger, outcome, deadline and consequence of failure. “Deployments must be highly available” names only an aspiration. Google Cloud’s SLO process likewise orders critical user journeys before selecting metrics.
The vocabulary then becomes precise. An SLI is the measurement. An SLO is its target over a stated population and window. An SLA is an agreement with consequences for missing its objectives, as distinguished in Google’s SRE definitions.
Shipyard has no contract or service credits. I would call its 99.9% target an SLO; its internal error-budget policy specifies engineering action, not a commercial remedy.
2. Write the constraint sheet before the design
Use a ratio of good events to valid events, but define both populations. Google’s worked guidance uses that form, while OpenSLO distinguishes occurrence-based budgeting from time slices.
For Shipyard, a valid create is an authorised, well-formed request reaching the public API boundary. Health checks, load tests and invalid credentials are outside it. A good create returns a durable deployment ID within two seconds. Timeouts, server errors and slower responses are bad; they remain in the denominator.
| Need | Measurement | Made-up objective or constraint |
|---|---|---|
| Submission availability and latency | Good creates divided by valid creates | 99.9% over rolling 30 days |
| Completion | Accepted IDs reaching a correct terminal state within ten minutes, divided by all accepted IDs | 99% over rolling 30 days |
| Freshness | Target-state transitions visible through the status API within 30 seconds, divided by all independently observed transitions | 99% over rolling 30 days |
| Durability | Recovery of accepted deployment and approval records | RPO zero for one-AZ loss; regional RPO five minutes; quarterly restore reconciles every expected record |
| Recovery | Regional service loss to successful synthetic create, status read and canary deployment | Regional RTO 60 minutes, tested quarterly |
Completion is an event SLO, not another request SLI. A truthful FAILED or CANCELLED result counts as completed: the platform finished orchestration, while the application owns its readiness behaviour. A false SUCCEEDED result is always bad. An independent prober must check that mapping.
Freshness is separate because workers can finish on time while a broken status projector leaves users looking at old state. Durability is different again: Google’s SRE book describes it as data retention, not whether that data can be served now.
RPO is the acceptable data-loss window and RTO the acceptable offline period in Google Cloud’s recovery guide, last reviewed in July 2024. The two-second, ten-minute and 30-second targets are hypotheses to validate in user interviews, not industry standards. I would baseline current SLIs, test them with users and revise the objectives as evidence improves.
3. Choose the denominator that matches the harm
Request success weights each attempted operation equally. Time-based availability weights each minute equally. Requests are more useful when a discrete operation represents user harm and demand is uneven. Google adopted request success for globally distributed services because some traffic may continue during partial failure (Embracing Risk). For an accepted deployment that finishes later, the meaningful unit is the deployment event, not the HTTP request or minute.
A 30-day month has 43,200 minutes. A total 15-minute outage gives 99.965% time availability, passing a 99.9% time-based objective. Now suppose a release burst puts 300 valid creates into those 15 minutes and all fail:
request SLI = (40,000 - 300) / 40,000 = 99.25%
request error budget = (100% - 99.9%) * 40,000 = 40 bad creates
incident spend = 300 / 40 = 7.5 monthly budgets
The time metric passes while the journey misses. The request budget turns an abstract 99.9% into 40 operations that can fail, be slow or both. Each objective has its own budget, as the example SLO document specifies; the 99% completion target separately allows 400 late or incorrect deployments at this volume.
Request measurement has a blind spot: zero requests provide zero evidence. During quiet nights, one failure can also look enormous. The SRE alerting guidance covers both low-traffic problems. I would run synthetic create, status and canary journeys from outside the platform, but report them separately. Mixing synthetic successes into the real denominator could hide affected users.
Time slices still fit when every minute of degradation matters similarly, or no natural operation exists. Write that choice down rather than treating “availability” as self-explanatory.
When Shipyard exhausts an objective’s budget, my policy for Shipyard is to pause platform feature releases and prioritise the implicated reliability work. Security fixes and customer deployments continue. Blocking customer releases would spread the platform’s miss across the organisation. The example error-budget policy is a useful model because it pre-agrees action and treats the budget as prioritisation, not punishment.
4. Let the constraints price three architectures
The numbers now reject designs without appealing to fashion.
-
Synchronous deployment. The API calls every target cluster and returns after rollout. This is simple to reason about, but a ten-minute journey cannot also produce a two-second response unless “response” means something narrower. It also couples submission availability and latency to every target. I would reject it for Shipyard.
-
Durable acceptance plus asynchronous workers. The API commits the deployment and an outbox record in one regional transaction, then acknowledges the ID. A dispatcher feeds a queue; idempotent workers reconcile targets and emit state events. This separates two-second acceptance from ten-minute completion. Its costs are queue delay, retry semantics and another consistency boundary in status.
-
Active-active regional control planes. This can reduce dependence on regional recovery, but demands more replication, conflict handling and operational design. Shipyard’s five-minute regional RPO and 60-minute RTO do not justify that price by default. I would reconsider if accepted writes had to continue through regional loss or the RPO became zero.
Engineer or CI
|
v
Public API ----> Regional metadata DB + outbox
| |
async DR copy dispatcher
| |
v v
DR region queue --> idempotent workers --> target clusters
|
v
state events --> status projector
|
v
status API
The diagram follows from the contract. Acknowledgement waits for the metadata commit, not rollout. The asynchronous copy can meet a nonzero RPO; only a timed restore can establish the RTO. Google’s recovery guide makes the same end-to-end recovery distinction.
5. Measure the ways the design can lie
Four failures show why one uptime panel is insufficient:
| Failure | User symptom | Objective affected | Diagnostic signals |
|---|---|---|---|
| Metadata commits slow down | Create timeouts and retries | Submission | Commit latency, API good/valid counts, saturation |
| Dispatcher or queue stalls | Accepted deployments never finish | Completion | Oldest outbox item, queue depth, worker completions |
| Status projector lags | Target changed, UI remains stale | Freshness | Transition watermarks, publish lag, read freshness |
| Restore cannot reconstruct state | Lost audit records or prolonged regional outage | Durability and recovery | Restore reconciliation, usable recovery point, timed canary |
Measure valid and good creates at the public API boundary and add caller-side probes. The example SLO document warns that load-balancer measurement misses requests that never reach it. Store acceptance, observed-transition, terminal and publication timestamps on each deployment event.
Keep deployment IDs in logs or event records, not metric labels: Prometheus instrumentation guidance explains that every label set creates another time series with resource costs. Aggregate latency observations across workers rather than averaging their percentiles; Prometheus histogram guidance explains why precomputed quantiles do not aggregate. Where classic buckets are used, align them with two seconds, 30 seconds and ten minutes.
A burn-rate alert asks whether budget is being consumed dangerously fast. For the 30-day, 99.9% create SLO, this PromQL pages at 14.4 times the sustainable rate over one hour and checks the previous five minutes so the incident is still active:
(
1 - sum(rate(shipyard_create_good_total[1h]))
/ sum(rate(shipyard_create_valid_total[1h]))
> 14.4 * 0.001
)
and
(
1 - sum(rate(shipyard_create_good_total[5m]))
/ sum(rate(shipyard_create_valid_total[5m]))
> 14.4 * 0.001
)
Those starting parameters correspond to 2% budget consumption in an hour in Google’s multiwindow example. Create event-budget alerts for completion and freshness, accounting for their delayed deadlines. Also alert diagnostically on the oldest outbox item and oldest unpublished transition: those signals locate the stage, while the SLI establishes user impact.
6. Publish non-goals without gaming the SLI
Shipyard deliberately does not guarantee:
- CI build or test duration before a valid artefact digest arrives.
- Application correctness or post-deployment application availability.
- Equal durability for rebuildable intermediate status history and accepted audit records.
- Zero data loss in a regional disaster; the stated RPO is five minutes.
- Latency for historical exports and offline reporting.
Non-goals are not convenient exclusions. Planned maintenance, a queue outage or an identity-provider failure still counts against the objective whose promise it breaks. Otherwise the denominator merely describes when the service works.
If users genuinely accept a maintenance window or an unsupported cluster class, put that boundary in the journey and measure their experience independently. My working read is that a non-goal should save design effort or clarify ownership. If it only improves the dashboard, remove it.
7. Revisit the constraints at ten times the scale
Assume Shipyard grows to 400,000 creates per 30 days, peak submissions rise from five to 50 per second, and state-event volume grows tenfold. The same 99.9% target now permits 400 bad creates, not 40. Reliability has not become ten times looser; the population has grown.
Aggregation becomes a tenancy risk. A tenant supplying 0.05% of valid creates can lose every create while the global SLI remains 99.95%, assuming every other create is good. Keep per-tenant diagnostic SLIs and isolate heavy tenants where needed, but do not create hundreds of low-volume paging policies without a contractual reason. Google’s alerting-at-scale guidance describes grouping request types with similar availability requirements as one technique.
Completion also creates a capacity test. Suppose workers recover with 18,000 queued deployments and must drain them in ten minutes while 50 new deployments arrive each second:
required throughput = 18,000 / 600 + 50 = 80 deployments/second
That is a testable design constraint. The same growth invalidates an untested 60-minute restore assumption and may make status projection the bottleneck before submission. Re-time recovery, rerun the burst test and inspect each event stage. Do not add another nine merely because the system is larger; change the target only if the journey or risk tolerance changed.
8. What to do on Monday
- Choose one journey. Name its actor, trigger, successful outcome, deadline and failure consequence. Leave the architecture diagram closed.
- Write the SLI contract. Define valid events, good events, measurement boundary, window and owner. Include correctness, not just HTTP status.
- Baseline before targeting. Measure current behaviour and ask users where delay or failure starts to hurt. Choose an attainable initial SLO rather than copying another service’s nines.
- Complete the constraint sheet. Add freshness, durability, RPO, RTO and explicit non-goals. Record which architecture each constraint rules out.
- Instrument outcomes and stages. Export good/valid counts, event timestamps and queue ages. Add multiwindow budget alerts and an external synthetic journey.
- Agree the response. Name who pauses feature work, which fixes remain permitted and when a restore test or post-incident review is mandatory. The next part turns the resulting rates and deadlines into capacity estimates.
9. Return to the successful API response
The next time a deployment API returns an ID, ask which promise that response actually keeps. Acceptance, completion and current status are different outcomes, so they need different measurements.
Once those promises have populations, deadlines and recovery boundaries, architecture review becomes a comparison of costs against explicit needs. A green API dashboard can return to being a clue, rather than the answer.
Built from public sources as of 30 November 2026. Any mistakes are mine alone, and nothing here speaks for the companies mentioned.