Architectural Thinking cheat sheet
53 commands from every lesson of Architectural Thinking — Forces, Scenarios & Trade-offs, on one page.
Is it architectural?
Reversal cost | How many teams, services, migrations or contracts must change to undo it |
Reach | How many quality attributes the decision affects |
Time lock-in | Does it get more expensive every month you run on it? |
Architecturally significant requirement | A requirement that forces an expensive-to-reverse decision |
Requirement kinds
Functional | What the system does |
Quality attribute | How well it does it, with a measure |
Constraint | A decision already made for you: respect it, don't optimise it |
Forces
Conway's law | System structure mirrors the organisation's communication structure |
Inverse Conway manoeuvre | Shape teams to match the architecture you want |
Accidental architecture | The sum of local decisions nobody made deliberately |
Six-part scenario
Source | Who or what causes the event |
Stimulus | What happens |
Artifact | Which part of the system is hit |
Environment | System state: normal, peak, degraded, during deploy |
Response | What the system should do |
Response measure | The number that proves it: percentiles, seconds, counts |
ATAM vocabulary
Utility tree | Attributes → refinements → scenarios, rated (importance, difficulty) |
Sensitivity point | A property that strongly affects one attribute |
Trade-off point | A property that moves two or more attributes in opposite directions |
Risk | A decision that may cause an undesirable outcome against a scenario |
Load
users x active share x actions / 86,400 | Average requests per second |
average x peak factor | Peak rps: state the factor as an assumption |
bytes x events/day x replicas x retention | Stored data |
Concurrency and queueing
L = λ x W (Little's law) | Items in flight = arrival rate x time in system |
max rate = pool size / hold time | Throughput ceiling of a connection pool |
W = S / (1 − ρ) (M/M/1) | Response time explodes as utilisation ρ approaches 1 |
1 − (1 − p)^n | Chance a fan-out of n calls hits at least one slow call |
Headroom
3 zones, survive 1 | Each zone carries peak/2, total 1.5x peak |
2 zones, survive 1 | Each zone carries full peak, total 2x |
Target utilisation | 60-75% for latency-sensitive services |
Definitions
SLI | good events / valid events, measured near the user |
SLO | Target for an SLI over a window (e.g. 99.9% in 30 days) |
SLA | Contract 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, independent | A = 1 − (1 − a)^2 |
Parallel, shared fraction c | unavailability ≈ 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 rate | Budget consumption speed relative to exactly spending it in the window |
Page | e.g. burn rate 14.4 over 1 h (2% of a 30-day budget), confirmed on a short window |
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 conversion | Interfaces, routers, versioned formats that keep options open |
Last responsible moment | Decide when waiting would remove an important option |
Trade-off statement
Gain | In quality-attribute scenario terms |
Give up | In the same terms |
Conditions | When the loss starts to matter |
Detection | How we'd notice, and what we'd do |
ADR fields
Status | Proposed, accepted, superseded by ADR-N |
Context / Decision / Consequences | Nygard's core structure |
Alternatives | What was rejected and why |
Revisit when | The trigger to check the decision again |