Bookmarks

SAD — software architecture document

An architecture document that records a system’s context, its major parts and the connections between them, key decisions and quality requirements.

Also: software architecture document, architecture document

checked 8 Nov

All terms

SAD brings together in one place what the architect needs to get across to teams and the customer: the system’s boundaries, its high-level structure, the decisions made and the reasoning behind them. Without such a document the architecture lives in people’s heads and chat threads, and new developers piece it together from fragments of the code.

What it contains

SectionWhat it describes
Contextwho and what the system works with: users, external systems, boundaries of responsibility
Major structurethe main parts — services, databases, queues — and the links between them
Decisionswhat was chosen and why: options considered, constraints, links to ADRs
Quality attributesrequirements for performance, reliability and security, and how the design meets them
Constraintsstandards, licences, environment and deadlines that narrow the choice of solutions

Viewpoints and views

According to ISO/IEC/IEEE 42010, an architecture description is assembled from views. A viewpoint is a template: which stakeholders and questions it serves, which diagrams and conventions to use. A view is that template filled in for a specific system.

  • context view — the system as a black box and its surroundings: users, external systems
  • component decomposition — which major parts the system consists of and what each one is responsible for
  • deployment view — which servers and environments the parts of the system run in
  • data and scenario flows — how typical requests and events pass through the system

The set of views depends on the system: an ordinary web service needs three or four, while a distributed platform adds message flows and fault tolerance.

Templates and document lifecycle

The set of sections usually comes from a ready-made template. The best known is arc42: twelve sections ranging from goals and constraints to risks and a glossary. The document is kept alive: it is updated when major changes happen, while the decisions themselves are recorded separately as ADRs, which the SAD references. Many companies call a document with a similar purpose a high-level design, or HLD.

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

    The boundary is loose: SAD describes the architecture from the stakeholders’ points of view, while HLD often means the same document or a slightly more technical version of it.

  • arc42 template

    arc42 is a template, a ready-made structure of sections; SAD is the document itself, which can be written following such a template.

  • ADRarchitecture decision record

    An ADR records a single decision and its context; SAD assembles the architecture description as a whole and references such records.

In depth in the references

where the topic is covered in detail