Requirements and numbers · wrap-up
Cheat sheet & self-check
Every command from this section 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 |