Lesson 8 of 9 · 25m
Designing for Operability Before the First Page
Build systems whose health, failure modes, controls, and recovery paths can be understood and operated by the humans who inherit them.
Operability is what the system feels like at 03:00 when the person responding did not write it. If diagnosis requires reading six services' source code, if every log line is a unique snowflake, and if the only control is restarting everything, the architecture is unfinished. Operability is not a operations-team add-on. It is a design property.
Health endpoints should describe capability
/healthz returning 200 only proves that some code can serve HTTP. Useful health distinguishes liveness from readiness and shallow checks from deep checks:
liveness process is running and not deadlocked
readiness instance can safely receive traffic
deep check selected dependencies are within expected behaviorDo not blindly chain every dependency into readiness. If one noncritical downstream is down, the service may still serve degraded traffic. Overly coupled health checks create cascading removal of healthy capacity.
Make failure modes inspectable
Operators need answers to boring questions: What changed? Which dependency is slow? Which tenant is affected? Is the queue draining? Are retries amplifying load? Structured logs and consistent labels make those questions cheap:
{"ts":"2026-11-30T18:42:11Z","level":"error","service":"checkout","route":"POST /checkout","request_id":"7a64d6f4","upstream":"payments","outcome":"timeout","latency_ms":2014}Timeouts, retries, and cancellation are operability controls
Without deadlines, failure waits forever and consumes capacity. Without retry budgets, recovery becomes a self-inflicted denial-of-service event. A client-side policy should be explicit:
connect timeout: 500 ms
overall deadline: 2 s
retries: at most 1 for idempotent requests
retry backoff: 100 ms + jitter
circuit breaking: open after sustained upstream failureRetries on non-idempotent writes need idempotency keys or server-side deduplication. Otherwise operability work can corrupt the very state you are trying to protect.
Provide safe degradation switches
A resilient system has ways to reduce nonessential load before it collapses: disable expensive recommendations, lengthen cache freshness, reduce preview generation, defer exports, or serve stale read data. These switches should be documented, permissioned, observable, and tested:
degradation_controls:
recommendations:
type: feature_flag
default: enabled
impact: reduces database reads during saturationThe worst time to invent a degradation switch is during the incident that needs it.
Runbooks should reduce thinking, not replace it
A good runbook starts with symptoms, immediate safety checks, blast-radius controls, and escalation. It does not pretend to enumerate every cause. Include commands that are safe to copy, expected output, and explicit stop conditions. Link the dashboard and the relevant deploy/change feed.
Field notes
- If the only mitigation is restarting the service, call that out as a reliability defect rather than normalizing it.
- Dashboards should be grouped by user journey, service, and dependency. Host-level metrics alone do not explain user pain.
- Test operational controls in game days or controlled failure exercises. Untested controls are decorative.
- Manual production mutations need auditability; convenience without evidence becomes forensic pain.
Was this lesson helpful?