How it works · 49 of 49 Core

How do you choose a software architecture?

From requirements to a defended decision

Choosing an architecture: Choose an architecture by writing down the needs that actually constrain it (team size, load shape, what must never be lost), picking the simplest shape that meets them, naming what that shape gives up, and recording the decision so the next person knows why.

Loading the animation…

Say it like this Choose an architecture from the needs that constrain it, take the simplest shape that meets them, say what it gives up, and write the decision down so the next person knows why.

Under the hood — for builders
Worked example: Nygard's decision record
Nygard (2011): "An architecture decision record is a short text file in a format similar to an Alexandrian pattern." Its parts: a title ("short noun phrases"); Context, "the forces at play, including technological, political, social, and project local"; Decision, "our response to these forces", "in full sentences, with active voice"; Status ("proposed" until agreed); Consequences: "All consequences should be listed here, not just the "positive" ones." "The whole document should be one or two pages long."
The card's record, in that format
Title: Services per team. Context: 6 teams; payments must never be lost. Decision: we split the shop into one service per team; payments go through an outbox. Consequences: teams release alone; every call between services crosses a network (312× slower in our run); one more relay to run. Status: accepted. The example is ours.
Terms
Architecturally significant requirement (adr.github.io): "a requirement that has a measurable effect on the architecture and quality of a software and/or hardware system." Quality attribute: a property such as speed, availability or ease of change. Trade-off point (SEI's ATAM): a decision that helps one quality attribute and hurts another. Superseded: Nygard keeps reversed decisions, marked, never deleted.
Run here: the price of one split, in numbers
The same "price this order" function, called inside one Python program, over HTTP to a service on the same machine, and through three services in a chain. One network hop cost 312× an in-process call (284–312× over three runs). Leaving the server's Nagle setting on (the default) made each call wait about 44 ms for a delayed acknowledgement: a default can cost more than the design. Log scale.
How to choose (Azure Architecture Center)
"Each architecture style has its own trade-offs." Define "the key business drivers and the corresponding architecture characteristics"; "Determine if the benefits of the architecture style outweigh the challenges"; "Focus more on why you're selecting a specific style than on how to implement it." "Be practical. Sometimes it's better to relax a constraint than to chase architectural purity."
Measure it
Each requirement as a number (users at peak, teams, minutes of data you may lose) · each candidate's cost on those numbers · how long until the record's context changes and the decision should be reopened.
Watch out
Choosing by fashion or by the last company's blog; listing only positive consequences; never revisiting a record when its context changes. SEI's ATAM exists to find "risks, non-risks, sensitivity points, and tradeoff points" before they find you; an evaluation "typically takes three to four days."
Sources
Michael Nygard, "Documenting Architecture Decisions", 15 Nov 2011 · adr.github.io · SEI, Architecture Tradeoff Analysis Method collection, 2018 · Azure Architecture Center, "Architecture styles" · all read in session · call-cost runs, Python, 21 Nov 2026.

What happens in the choosing an architecture animation, step by step?

  1. The last card is yours. An empty plot, the same one the path began with, and a brief of requirement cards. Nothing is drawn until the needs are on the table.
  2. Your turn: drag two or three cards onto the plot (or tap one). The building redraws after each card: the shape follows the needs, not the fashion.
  3. Now one need changes. Same product, a different right answer: there is no best architecture, only one that fits these needs.
  4. Say the price out loud. Every shape buys something and pays for it; in our run, one call across a network was 312 times slower than inside one program.
  5. Write it down. A decision record pins to the fence: the context, the decision, all its consequences, its status. In two years someone will ask why.
  6. Name the needs, pick the simplest shape, say the price, write it down. That is the whole path; every shape in it is one answer to a card like these.

What everyday example explains choosing an architecture?

An architect's site visit before drawing. The brief (who lives there, how many guests, what must never flood) decides the house; the plan names what it gave up (no basement, a long corridor); the signed drawing is pinned to the fence for whoever builds the extension.

Why should a team care about choosing an architecture?

Every new system, and every "should we split this?" meeting, is this decision; a team that writes the needs and the price down first argues about facts, and the next team inherits the reason, not just the result.