Architectural Thinking — Forces, Scenarios & Trade-offs›Targets and decisions · Cheat sheet & self-check

Targets and decisions · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

04 · SLOs as design inputs

Definitions

SLIgood events / valid events, measured near the user
SLOTarget for an SLI over a window (e.g. 99.9% in 30 days)
SLAContract with consequences; looser than the SLO
Error budget(1 − SLO) x window; the policy says what happens when it's spent

Arithmetic

Serial (hard deps)A = a1 x a2 x ... x an
Parallel, independentA = 1 − (1 − a)^2
Parallel, shared fraction cunavailability ≈ c(1 − a) + ((1 − c)(1 − a))^2
30-day budget at 99.9%43.2 minutes
30-day budget at 99.99%4.3 minutes

Alerting

Burn rateBudget consumption speed relative to exactly spending it in the window
Pagee.g. burn rate 14.4 over 1 h (2% of a 30-day budget), confirmed on a short window

05 · Trade-offs, reversibility and ADRs

Reversibility

One-way door (Type 1)Consequential, hard to reverse: decide slowly, with care
Two-way door (Type 2)Reversible: decide fast, in small groups
Two-way conversionInterfaces, routers, versioned formats that keep options open
Last responsible momentDecide when waiting would remove an important option

Trade-off statement

GainIn quality-attribute scenario terms
Give upIn the same terms
ConditionsWhen the loss starts to matter
DetectionHow we'd notice, and what we'd do

ADR fields

StatusProposed, accepted, superseded by ADR-N
Context / Decision / ConsequencesNygard's core structure
AlternativesWhat was rejected and why
Revisit whenThe trigger to check the decision again