LVD vs. Hexagonal Architecture

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?

Two zones and a boundary

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.

Laying one over the other

The mapping is straightforward in the middle and interesting at the edges.

  • The domain model corresponds to Schema and Utils: the types and the pure rules.
  • Application services correspond to Tools, where use-case logic lives.
  • Driven adapters, the database and vendor clients, correspond to Resources.
  • Driving adapters, the entry points from outside, correspond to the API and MCP layers.
  • Skills and Agents have no hexagonal counterpart. They are an extension for a world where AI clients choose what to call.

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.

What two zones cannot say

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.

Where hexagonal is the better fit

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.

The takeaway

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.

What the book covers

  • A concept-by-concept mapping from ports and adapters to LVD layers
  • Why two zones collapse several volatility bands
  • Where hexagonal's vocabulary is the simpler one
  • Where LVD gives more placement guidance
  • How the UI is treated as a driving adapter and why LVD separates it