LVD vs. Clean Architecture
Clean Architecture and LVD both point dependencies at the stable core, but differ in how finely they slice the outer rings and in what they say about AI and UI.
Ports and adapters gives a team a very good sentence to say in design reviews: "that belongs in an adapter". It is short, memorable and usually right. LVD asks a follow-up question that the sentence leaves open: which adapter, and how fast does it change compared with the one next to it?
Alistair Cockburn's hexagonal architecture divides a system into an inside, holding the application core and domain logic, and an outside, holding infrastructure, user interfaces and external systems. The boundary is made of ports, which are interfaces the core declares, and adapters, which are implementations that plug those ports into real technology. Ports come in two flavours: driving ones, through which the outside calls the application, and driven ones, through which the application calls out.
The hexagon is a metaphor for having many faces, not a stack. A system can be approached from a browser, a queue or a test harness without privileging any of them.
The mapping is straightforward in the middle and interesting at the edges.
The UI deserves a line of its own. In hexagonal terms it is just another driving adapter, sitting beside the protocol ones. LVD lifts it into the ninth layer because it changes more often than they do and has an internal structure of its own.
The book's central observation is an asymmetry. The hexagon's inside lumps together Schema, Utils and Tools, which span a wide range of volatility, from about 0.3 to 0.8 on LVD's scale. Its outside lumps Resources with the API and MCP layers. Each zone is a single bucket, so the model cannot say that a data type changes more slowly than an orchestration routine, or that a vendor client changes at a different pace from an endpoint.
That is where the extra layers help. They tell you how to arrange the inside, which hexagonal architecture deliberately leaves to you. They also keep database clients and third-party API wrappers in Resources, apart from protocol adapters, because they are driven by different forces. And the volatility coefficient gives a measurable reason for placing something, where "inside or outside" is a qualitative call.
There are honest points in hexagonal's favour, and the book lists them. Two zones are quicker to explain and easier for a team new to structured design to adopt. "Swap the adapter" is a more intuitive phrase than anything LVD offers for the same idea, even though Resources achieves the same thing. And hexagonal is deliberately technology-agnostic, whereas LVD's nine named layers reflect a particular context of APIs, MCP and AI agents that may not describe every system.
A simple example is a library-lending application that has one database, one web front end and no AI features. Hexagonal's vocabulary will carry you a long way. The balance shifts as the outside grows more crowded.
Think of LVD as hexagonal architecture with the zones subdivided by rate of change and with new rooms for protocols, agents and screens. If you already write ports and adapters, you do not start over: your driven adapters are Resources, your inbound adapters are the API, and the interesting work is splitting the core. For the adapter patterns themselves, see four patterns that keep external systems at arm's length, and for the other comparisons in this series start with LVD vs. Clean Architecture.