Architecture Verification: Turning a Diagram into a Test
How a two-step graph check can verify an architecture automatically, what to do when it fails, and how volatility numbers can suggest layer boundaries.
Every generation of architects solved the previous generation's headache, and in doing so created a new one. Tiers tamed the tangled desktop application and produced the bloated middle layer. Services tamed the bloated middle and produced the integration bus. Microservices tamed the bus and produced a distributed-debugging problem. Reading that history in order is the quickest way to see which questions architecture has answered, and which it keeps circling back to.
Early systems were monoliths because they had no real alternative. Memory and processing power were scarce, work ran in batches, users sat at terminals, and everything was deployed to a single machine. There was nowhere to put a network boundary even if you had wanted one. The industry's anxieties of the era, summed up by the "software crisis" label that came out of the 1968 NATO conference on software engineering, were about projects that ran late and programs nobody could maintain.
Structure arrived as discipline inside the program. Structured programming replaced tangled jumps with clear control flow, and Edsger Dijkstra's THE operating system, published in 1968, was organised in layers, each using only the services of the ones beneath it. The idea of layering is much older than the three-tier diagram most of us learned.
The decisive contribution of the period was David Parnas's 1972 paper on the criteria used to decompose systems into modules. Before it, the usual approach followed the flow of processing: read the input, then transform it, then sort it, then print it, with a module per step. Parnas compared that with a different cut, in which each module hides one design decision that might later change, such as how data is stored. His observation about coupling is still the most compact definition available:
The connections between modules are the assumptions which the modules make about each other.
Read that way, a good boundary is one that keeps assumptions from leaking. If the storage format is a secret of one module, swapping the format touches one module. Parnas's lesson, as the book presents it, is that module boundaries should align with likely boundaries of change, and interfaces should stay stable while the decisions behind them move. That is an explicit appeal to what changes, written more than fifty years ago.
Networked computing made physical separation possible. Two-tier client-server put presentation logic on the desktop and the data, and often the business rules, on a server. It was easy to understand and difficult to scale, since every client held its own connection to the database and any change to business rules meant redistributing software to every machine.
Three-tier architecture fixed this by inserting a middle tier. Presentation sat on the client, business logic ran in an application server, and data lived in a database. It became the default shape of enterprise software, codified by platforms such as Java EE and .NET. The benefits were real: the UI was separated from business logic, the logic could be reused by several clients, data was managed centrally, and each tier could be scaled on its own.
The limits showed up in daily work, and the book names them clearly. With only three layers, decomposition was coarse. Many components had no obvious home, so the middle tier turned into a "god layer" where everything unclassifiable collected. Concerns that cut across all tiers, such as security, logging and caching, got little guidance. A tier describes a technical role. It says nothing about which code changes together.
Service-oriented architecture took the next step and made services the unit of deployment. Its toolkit was standardised messaging (SOAP, XML and WSDL), an enterprise service bus in the middle, and contract-first development, in which the interface is agreed before any code is written. The promise was that business capabilities, once built as services, could be reused across the whole organisation.
In practice, many implementations collapsed under their own weight. The WS-* family of specifications was heavy, versioning contracts proved difficult, XML processing became a performance bottleneck, and running the infrastructure took significant effort. A bus intended to decouple systems often became the one thing every system was coupled to.
Even so, SOA left behind ideas that survived its tooling. Services should expose explicit contracts. Components should talk through messages rather than shared internals. Services should be deployable independently. Strip away the XML and these are still the principles that modern systems follow.
Microservices are often described as SOA done properly. The vocabulary is familiar, but the emphasis differs: small, focused services with a single responsibility, independent deployment, a different data store for each job (polyglot persistence), decentralised governance, and boundaries drawn around business capabilities. The last point echoes Conway's observation that systems come to resemble the communication structure of the organisations that build them, and it explains why the style spread alongside team-topology thinking.
It also depended on infrastructure that earlier eras lacked. Cloud platforms gave elastic scaling, containers such as Docker made packaging and deployment routine, service meshes took over cross-cutting concerns like retries and encryption between services, and API gateways handled the external edge.
Alongside microservices, three design patterns became the standard vocabulary for what happens inside a service:
To make the differences tangible, imagine the same small change in each style: a government alters how sales tax is calculated on shipping charges. The rule itself is simple. How far the edit travels depends entirely on the architecture.
Each style handles part of the problem well, and each leaves a loose end where the rule's real boundary does not match the architectural one. The recurring cause is that nothing in the structure records how stable the tax rule is, or which other code is supposed to stay ignorant of it.
Laid side by side, the eras show a pattern. Each one drew its boundaries along a different axis, and each axis fixed one problem while leaving another open.
| Era | Boundaries followed | Where it went wrong |
|---|---|---|
| Monolith | Program flow and the machine | One tangled unit; every change risky |
| Tiers | Technical role | A bloated middle tier; no home for cross-cutting concerns |
| SOA | Business services behind standard contracts | Heavy protocols and a bus everything depended on |
| Microservices | Business capabilities, deployed separately | Operational overhead; wrong boundaries become distributed pain |
| Modern patterns | Domain meaning and dependency direction | Excellent principles, but no complete blueprint |
The book distils five lessons from this arc. Decomposition is essential for every large system that succeeds. Boundaries matter because they allow parts to evolve independently. Dependencies determine complexity, and cycles in particular are what make architectures impossible to reason about. No single approach suits every domain and scale. And tooling matters: automated verification is what lets a team maintain architectural discipline as the code changes, because a rule that is only written in a wiki is not a rule.
The second of those lessons connects back to Parnas. His criterion, change, is the one that most mainstream patterns after him left implicit. They cut by processing step, by tier, by service or by domain meaning, and treated change as a by-product of good boundaries rather than the thing that chooses them. That is an observation about the pattern of the history rather than a claim any one author made, but it is hard to unsee once noticed.
The book ends its historical survey with four questions that none of the eras settled:
These are the gaps that Layered Volatility Decomposition is written to fill. If you want to see why three tiers in particular run out of room, read why three tiers are no longer enough. To see how the classic strategies compare when you try to apply them to the same system, continue with five ways to decompose a system, and for the axis that ties it all together, see volatility as a decomposition criterion.
Architecture history is a sequence of answers to one question: where should the lines go? Parnas answered it with change in 1972, and the industry spent the following decades trying other axes. Knowing which problem each era was solving makes it easier to pick from the toolbox today, and to notice when a fashionable pattern is solving a problem you do not have.