Lesson 01 of 5 · Requirements and numbers
What architects actually decide
Architecture is the set of decisions that are expensive to change. Learn to separate functional requirements, quality attributes and constraints; find the architecturally significant ones; see how team structure shapes the system; and build a decision inventory that tells you where to spend design effort.
Forces
Every system has an architecture. The only question is whether someone chose it. Most production systems carry an accidental architecture: the sum of local decisions, each sensible on the day, that together fix how the system scales, fails and changes. The architect's job is to find the few decisions that will be expensive to reverse and make them deliberately, with the trade-offs written down.
Three forces pull against each other in almost every design:
- Delivery pressure wants the simplest thing that ships this quarter.
- Quality pressure wants the system to stay fast, available, secure and cheap at ten times today's load.
- Change pressure wants the system to stay easy to change, because requirements will move.
You cannot maximise all three. Architecture is choosing where each one wins, and making that visible.
First principles
What makes a decision architectural
Martin Fowler's working definition is the useful one: architecture is "the decisions you wish you could get right early", because they are hard to change later. Size of the component doesn't decide it, cost of change does. Three tests:
- Reversal cost. How many teams, services, data migrations or customer contracts would have to change to undo it?
- Reach. How many quality attributes does it affect? A choice of primary datastore affects performance, availability, consistency, cost and operability at once.
- Lock-in in time. Does the decision get more expensive every month you run on it? Data formats, public APIs and tenancy models do; an internal library choice usually doesn't.
A decision that scores high on any of the three is architecturally significant. Everything else is design, and should be left to the teams closest to it.
Three kinds of requirement
| Kind | What it says | Example | How it shapes architecture |
|---|---|---|---|
| Functional | What the system does | "An admin can revoke a user's access" | Mostly decomposition and data model |
| Quality attribute | How well it does it, measurably | "A revocation is enforced everywhere within 2 s" | Topology, consistency, caching, replication |
| Constraint | A decision already made for you | "Must run in the customer's region", "Postgres only" | Removes options; must be respected, not optimised |
Architects spend most of their time on the second row. Functional requirements rarely force an architecture; quality attributes almost always do. Note that the revocation example is functionally trivial and architecturally hard: a 2-second global bound rules out long-lived cached tokens with no revocation path.
The quality attribute vocabulary
Use a standard vocabulary, so a review doesn't argue about words. ISO/IEC 25010 (revised in 2023) defines the product quality model:
| Characteristic | Sub-characteristics you will actually discuss |
|---|---|
| Functional suitability | Completeness, correctness, appropriateness |
| Performance efficiency | Time behaviour (latency), resource utilisation, capacity |
| Compatibility | Co-existence, interoperability |
| Interaction capability | Learnability, operability, user error protection, accessibility |
| Reliability | Faultlessness, availability, fault tolerance, recoverability |
| Security | Confidentiality, integrity, non-repudiation, accountability, authenticity, resistance |
| Maintainability | Modularity, reusability, analysability, modifiability, testability |
| Flexibility | Adaptability, scalability, installability, replaceability |
| Safety | Operational constraint, risk identification, fail safe, hazard warning, safe integration |
Two attributes the standard spreads around but practitioners name separately: operability (how hard it is to run, debug and upgrade) and cost (unit cost per request, tenant or GB). Name both explicitly in every design; they are the ones teams regret ignoring.
Conway's law
Melvin Conway observed in 1968 that organisations "are constrained to produce designs which are copies of the communication structures of these organizations". It is not a slogan; it is a force with the same weight as latency. If three teams own one service, the service will grow three internal seams. If one team owns the database and five teams own services that share it, the schema becomes the integration contract and every migration needs five approvals.
The inverse Conway manoeuvre uses this on purpose: shape team boundaries to match the architecture you want, so the communication structure pushes the system towards it rather than away. An architect who proposes service boundaries without discussing team ownership has done half the job.
Design space
The decisions that are almost always architecturally significant, with their typical reversal cost:
| Decision | Examples | Typical cost to reverse |
|---|---|---|
| Decomposition | Modular monolith, services, cells | Very high once teams and data are split |
| Data ownership | Shared database vs database per service | Very high: data migrations and contract changes |
| Consistency model per entity | Linearizable vs causal vs eventual | High: callers come to depend on it |
| Communication style | Synchronous RPC vs events vs both | High: changes failure semantics everywhere |
| Tenancy model | Silo, pool, bridge per layer | Very high: affects data, cost, compliance |
| Deployment topology | Single region, multi-AZ, multi-region | High: data replication and routing change |
| Identity and trust | Where authentication terminates, token design | High: every service integrates with it |
| Public API and data formats | Versioning scheme, event schemas | Very high: you don't control the clients |
| Operating model | Who runs it, on-call ownership | Medium: organisational, but slow |
Notice what is not on the list: the web framework, the logging library, the CI tool. Those are real decisions, but they are cheap to reverse and local to one team. Spend architecture time where reversal is expensive.
Failure modes
Premature distribution. Splitting into many services before the domain boundaries are understood turns every wrong boundary into a distributed-systems problem: network calls instead of function calls, partial failure, distributed transactions. In 2023 the Prime Video team published how they moved an audio/video quality-monitoring tool from a distributed design of serverless functions and step-function orchestration to a single process, cutting its infrastructure cost by about 90%. The lesson is not "monoliths are better"; it is that the decomposition must follow measured load and change patterns, not fashion.
Architecture by résumé. Choosing a technology because the team wants to learn it. The tell: the design review discusses features of the tool but not the quality attribute it serves.
Undefined quality attributes. "Highly available" and "scalable" without numbers. They can't be tested, so they are only discovered in production.
Ignored operability. A design that is correct on the whiteboard but needs a human to run seven manual steps during failover. Under stress, humans skip steps.
Published incident: Knight Capital, 1 August 2012
Knight Capital deployed new trading code to eight servers; one of them was missed. The new release reused a configuration flag that, on the old code, activated a function retired years earlier. On the server without the new code, the flag woke up the retired logic, which sent millions of orders into the market. In about 45 minutes the firm lost roughly $460 million, and it had to be rescued. The SEC's order (2013) describes the missing deployment verification and the absence of a kill switch. Architectural lessons: dead code is a liability, never reuse a flag's meaning, deployments need verification that every node runs the intended version, and a high-impact system needs a fast, tested way to stop.
Lab (written exercise): a decision inventory
This lab is a written exercise; no laptop can reproduce an organisation. Take a system you know well, or use the brief in the design review below.
- List every decision that is already made, explicitly or by accident. Aim for 20.
- For each, score reversal cost (1-5), reach (number of quality attributes it affects) and time lock-in (does it get worse every month: yes/no).
- Sort by reversal cost. The top five are your architecture. Check each one: is the reason written down anywhere? Who owns it?
- For the top five, write the quality attribute each one was serving. If you can't, it was accidental.
A worked row:
Decision: All services read and write one shared PostgreSQL cluster
Reversal: 5 (12 services, 3 teams, schema is the integration contract)
Reach: performance, availability, modifiability, security (blast radius), cost
Lock-in: yes: each new table and each new consumer raises the cost of splitting
Serving: delivery speed in year one (no event infrastructure needed)
Owner: nobody; migrations are approved in a shared channel
Action: record an ADR now; define ownership per table; stop new cross-service joins
Architect's lens
Before drawing anything, ask these ten questions. They come back in every course in the Architecture & System Design area.
- Purpose: who is the user, what hurts today, and what metric says it's fixed?
- Scale: users, tenants, requests per second, data size, growth rate.
- Data: source of truth, owner, consistency needed, retention, residency.
- Boundaries: in and out of scope, trust boundaries, shared vs dedicated.
- Failure: what breaks first, blast radius, what still works when X is down, RPO and RTO.
- Security: who can do what, how identity is proven, what an attacker wants.
- Change: how it is deployed, upgraded and rolled back; which decisions are one-way doors.
- Operate: how we know it's healthy, who gets paged, what they see.
- Cost: what drives the bill, cost per tenant or request, what you would cut first.
- Evolution and organisation: what changes in two years, who builds and runs it, build or buy.
Close every design with the two or three key trade-offs, the biggest risk, and what you would build first.
Design review
Brief. A company sells an access-review product to enterprises: managers periodically confirm or revoke their reports' access to business applications. Today it is one application and one database serving 600 customers. Sales has signed contracts that will bring 6,000 customers in 18 months, including 40 that require their data to stay in the EU, and two that want a dedicated deployment. The engineering organisation will grow from 2 teams to 7.
Produce: a decision inventory of the ten most significant decisions; for each, the quality attribute it serves and its reversal cost; a proposed team ownership map; and the first three decisions you would make now, with what you would deliberately postpone.
| Level | What the answer shows |
|---|---|
| Senior | A sensible list of decisions and a target architecture |
| Staff | Decisions ranked by reversal cost; residency and dedicated customers identified as tenancy decisions; postponed decisions named |
| Principal | Team boundaries designed together with system boundaries; a sequencing plan that keeps the product shippable; the cost and operating model stated; what would make you change your mind |
Self-check
Why is "the API must be versioned" architecturally significant, while "use library X for JSON" isn't?
Reversal cost and reach. Clients you don't control depend on the API's shape and versioning scheme, so changing it takes coordinated releases outside your organisation. A JSON library is local to one codebase and can be swapped in a sprint.
A requirement says "the system must be secure". What do you do with it?
Turn it into specific, testable quality-attribute scenarios: who the attacker is, what they target, under what conditions, and what response is required and measured (for example "a stolen session token is unusable after logout within 60 s"). From brief to quality-attribute scenarios covers the format.
Five teams share one database. What does Conway's law predict, and what would you change?
The schema becomes the integration contract, migrations need cross-team coordination, and the database becomes the coupling point and the blast radius. Assign table ownership to one team each, put access for others behind that team's API or events, and align team boundaries with the services you want.
References
- ISO/IEC 25010:2023, Systems and software engineering — Product quality model
- Bass, Clements and Kazman, Software Architecture in Practice, 4th edition (2021), chapters 3-4
- Fowler, "Who Needs an Architect?", IEEE Software, 2003
- Conway, "How Do Committees Invent?", Datamation, April 1968
- U.S. SEC, Order in the matter of Knight Capital Americas LLC, Release No. 70694, October 2013
- Prime Video Tech, "Scaling up the Prime Video audio/video monitoring service and reducing costs by 90%", March 2023
- Richards and Ford, Fundamentals of Software Architecture, 2nd edition, chapters 1-4
Related on this site
- Architecture decisions and ADRs in Technical Leadership
- Requirements → NFRs in Cluster Design
- Architecture anti-patterns in SRE & Incidents
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.