Architecture Enterprise, solution and system architecture
System architecture: a profile, a sketch and a few mechanisms
System architecture describes the structure, behaviour and aesthetics of one product, and gives the team technical direction on how to structure code and work with each other. It mitigates the significant technical risks by providing common solutions to the product’s common problems, ways of addressing its primary technical risks, ways of reducing its areas of complexity, and examples of how the system hangs together and works.
Solid, here, means a common scaffolding that developers add their parts of the product to, reliable and logically defensible. Useful means it is executable code that makes the product easier to develop; if it does not, it is not doing its job. Beautiful means elegant without being clever.
We recommend understanding a system architecture through three things, and only adding more (UX designs, scenario workflows, data models) where the profile says it is needed:
- an architectural profile: where the complexity is, dimension by dimension, which tells you how explicit each part of the architecture needs to be
- an architectural overview: one sketch of the shape of the system, its structural pattern, the main contents of each part, the primary interfaces to other systems, the key actors, the deployment target and the critical data. See Diagrams for how to draw one and how C4’s context and container levels map onto it.
- a small number of lightweight mechanisms: how the system does the things that matter, as working code with an explanation.
The overview is the primary way to describe a system architecture to the team and to interested stakeholders: talk them through it. For a very simple system it may be all the description there is. System architecture, at least partially implemented and proven against a number of real requirements, is a key deliverable for the Product De-Risked milestone. It will not be right first time. It is proven through delivery of working software and refined by feedback from tests, the team and users.
Spikes and the profile
Two tools apply at every level and have their own pages. A spike is documented as a theory plus one or two tests, and nothing else; the code is kept but never integrated. The architectural profile is the chart of relative complexity per dimension. Its first bar, differentiating functionality, drives the most important architectural decision there is, which is whether to build at all. A low bar means a commodity, and a strong strategic reason is needed to build rather than buy or rent (see Portfolio). A bar that falls during a product’s life means it is a candidate for retirement or replacement by a commodity. Technical and quality risks hide in whichever dimensions are high, which is where fringe cases live and where early iterations should go.
Related
- Architectural mechanisms: how to write one
- Diagrams: how to draw the architectural overview
- Solution architecture: the level above, for systems-of-systems