Architecture answers the questions that are hard to back out of later: which parts the system consists of, what each of them does, how the parts communicate and where everything runs. A diagram is merely a way to present the decisions: they are used to check in advance, before any code, whether the system will get the quality attributes it needs — modifiability, availability, security.
What counts as architecture
| Decision | What it fixes |
|---|---|
| System boundaries | what the system does itself and what it takes from outside: external services, platforms, data |
| Split into parts | the major components — modules, services, databases — and each one’s area of responsibility |
| Connections and protocols | how components communicate: synchronous requests, message queues, events |
| Key data | where the main data is stored, who owns it and how copies are kept consistent |
| Quality requirements | load, fault tolerance, security, cost — what guides the choices |
| Evolution principles | the rules by which the system will be extended and changed |
How it differs from code design
Code design deals with the inner workings of a component: classes, functions, database tables. Architecture looks at the system as a whole and chooses what is expensive to change later: the language and platform, the style — a modular monolith or microservices, say — the approach to integration, data storage. A mistake at this level affects many components at once, so such decisions are written down separately — in an ADR, for example — and revisited explicitly rather than quietly slipped into code changes.
How it is described, and the standard
ISO/IEC/IEEE 42010 requires describing architecture in terms of stakeholders, viewpoints and views: each look at the system is for its own audience — the context for the customer, the deployment for DevOps. Practical descriptions are put together in documents such as a SAD or following the arc42 template, diagrams are drawn with the C4 model, whose levels run from context to code, and decisions are recorded in ADRs. Architectural decisions are chosen by the cost of a mistake: what is cheap to redo in code is not architecture; what must hold for years is.
Sources
the term is written from these pagesVerified 8 Nov