What software architecture is and how it works
Software architecture is the set of key decisions about how a system is structured: what parts it consists of, how they are connected and deployed, and why it was done that way. The ISO/IEC/IEEE 42010:2022 standard distinguishes the architecture itself from its description (architecture description): the standard’s requirements apply to the description, not to the system.
There is a shorter definition: “Architecture is the stuff that’s important. Whatever that is” — as Ralph Johnson put it in a conversation with Martin Fowler. Behind the joke is a working criterion: a decision is architectural if you would want to get it right from the start and it is expensive to change later.
Which decisions are architectural
An architecturally significant requirement is a requirement that noticeably affects the architecture and quality of a system: performance, availability, security. An architectural decision is a justified choice that answers a significant functional or non-functional requirement. Examples:
- monolith or a set of services — shapes teams, deployment and communication
- the main database — shapes consistency, scaling and cost
- synchronous or asynchronous communication — shapes failures and latency
- not significant: a class name or a date-formatting library — changed in hours
A significant decision is recorded as an ADR (architectural decision record): context, options, choice and consequences. The set of records for a project is the decision log.
Levels: system, modules, code
The same question — “who is responsible for what” — comes up at every level; only the price of the answer differs. At the lowest level, Robert Martin’s SOLID principles apply: SRP, OCP, LSP, ISP, DIP — single responsibility, extension without modification, Liskov substitution, interface segregation, dependency inversion.
| Level | What is decided | Example | Cost of change |
|---|---|---|---|
| system architecture | which parts exist, how they connect, how they are deployed | monolith or services; call or queue | high: migration and data transfer |
| module boundaries | who knows what inside the codebase | domains, dependencies through interfaces | noticeable: edits across many files |
| code design | classes and functions within a boundary | split a tangled class in two | low: local edits |
What an architect does
An architect decides what is important in a system and keeps the important things in order — this is how Martin Fowler describes the role. It is a role, not necessarily a job title: it is often filled by an experienced developer on the team. The role shows in its results: recorded decisions and agreed trade-offs, not documents for their own sake.
Trade-offs and the cost of decisions
Every architectural decision has a price. The ATAM method (Architecture Tradeoff Analysis Method) from the Software Engineering Institute (SEI) defines sensitivity points — decisions on which a quality attribute depends heavily — and tradeoff points — decisions where attributes pull in different directions. Encrypting a channel improves security and reduces performance; a database replica speeds up reads and complicates consistency. Before choosing, say out loud what you are paying.
When explicit architecture is needed
Explicit architecture is not a mandatory ritual but a response to the cost of mistakes:
- needed: several teams work on one system, the system lives for years, availability and security requirements are strict
- conventions are enough: a prototype, one team, a short lifespan
- a sign of good timing: decisions are made while they can still be changed without a migration
The path is always the same: requirements and constraints become decisions, and decisions become structure; the structure follows from the requirements through recorded decisions (see the diagram below). A new requirement sends you back to the decisions.
How it differs from neighbouring fields
| Field | What it decides | Where to read more |
|---|---|---|
| software architecture | system parts, connections, deployment | this reference |
| infrastructure and cloud architecture | nodes, networks, availability, redundancy | the infrastructure architecture reference |
| security architecture | threat models, defence, Zero Trust | the security architecture reference |
| enterprise architecture | an organisation’s processes and systems, TOGAF | the section “Standards and their status” |
| code design | classes and functions within a boundary | the language and framework references |
The boundaries overlap at the seams: for a software architect a message queue is a way to connect parts, for an infrastructure architect it is a node and a network. Specifications and project documents as part of the process are covered in the IT project management reference.
What you should know first
- experience building at least one service: deployment, environment, database
- HTTP and REST at the client and server level — the HTTP and REST reference
- SQL and a relational database at the level of tables and queries — the SQL reference
Next: quality attributes are in “Quality attributes and non-functional requirements”, styles in “Architectural styles”, and recording decisions in “Architecture description: C4, arc42 and ADR”.
Section sources
the section is written from these pages- ISO/IEC/IEEE 42010:2022 — Software, systems and enterprise — Architecture descriptioniso.org/standard/74393.html(opens in a new tab)
- Software Architecture Guide (Martin Fowler)martinfowler.com/architecture/(opens in a new tab)
- Architectural Decision Records (ADRs)adr.github.io(opens in a new tab)
- Architecture Tradeoff Analysis Method® Collection (SEI)sei.cmu.edu/library/architecture-tradeoff-analysis-method-collection/(opens in a new tab)
- Solid Relevance (Robert C. Martin)blog.cleancoder.com/uncle-bob/2020/10/18/Solid-Relevance.html(opens in a new tab)