Bookmarks

Software architecture

The large-scale make-up of a software system: which main parts it consists of, how they are connected, and which decisions shaped that structure.

Also: software architecture, system architecture

checked 8 Nov

All terms

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

DecisionWhat it fixes
System boundarieswhat the system does itself and what it takes from outside: external services, platforms, data
Split into partsthe major components — modules, services, databases — and each one’s area of responsibility
Connections and protocolshow components communicate: synchronous requests, message queues, events
Key datawhere the main data is stored, who owns it and how copies are kept consistent
Quality requirementsload, fault tolerance, security, cost — what guides the choices
Evolution principlesthe 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 pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • HLDhigh-level design

    HLD is a document that records the decisions; architecture is the make-up of the system itself, and the document is merely a description of it.

  • LLDlow-level design

    LLD works out the internals of an individual component in detail, while architecture describes the system as a whole and the connections between its parts.

  • EAenterprise architecture

    Enterprise architecture covers the whole organisation — processes, data, applications — while software architecture covers a single system.

In depth in the references

where the topic is covered in detail