Löwy's Insight: Draw Boundaries Around Things That Change Together
Juval Löwy's premise that modules exist to contain change, and why that leads to boundaries drawn by rate of change instead of by feature.
Ask five architects how to divide a ride-sharing app into modules and you will get five sensible, well-argued answers. One will split by feature, another by domain object, a third by business context, a fourth by technical tier, and a fifth by reusable component. Nobody is wrong. They are simply cutting along different axes, and the axis you pick decides which changes will be cheap and which will be painful.
The book surveys five classic strategies in its first chapter, and the clearest way to compare them is to apply each to the same system. Our example is a ride-sharing app. Riders request trips, the system matches them with drivers, calculates a fare, takes payment, sends notifications, and onboards new drivers after checking their documents. Keep that list in mind, because every strategy below will carve it up differently.
The most intuitive approach starts from features. You end up with a matching module, a pricing module, a payments module, a notifications module and a driver-onboarding module. Each has an obvious purpose, a product manager can read the list, and the structure mirrors what users can see.
The trouble starts with shared data. Pricing, matching and payments all need to agree on what a trip is, so they quietly share the same structures. Add a field to the trip and all three modules change. Cross-cutting concerns such as logging, permissions and retries get re-implemented in each module, and as features evolve the boundaries drift. The book's verdict is that this suits small systems with stable feature sets.
Here you model the domain as classes: Trip, Driver, Rider, Vehicle, Fare. Encapsulation hides internals, polymorphism makes variants easy to add (a PoolTrip beside a SoloTrip), and a rich catalogue of patterns, popularised by the Gang of Four's 1994 book, offers proven solutions. Code maps closely to how people talk about the business.
The weaknesses are about scale. Inheritance trees can grow deep and brittle, and questions of identity and lifecycle (is this driver the same object across sessions?) turn out to be harder than they look. Most importantly, classes do not tell you what to deploy together. The book notes that the approach says nothing about deployment units, and that module boundaries are often unclear. It fits systems with rich domain models and intricate relationships between entities.
Domain-Driven Design, introduced by Eric Evans in 2003, asks a different question: where does a word change its meaning? In our app, "driver" means a licensed person with documents under review in onboarding, a location pinging every few seconds in matching, and a payee with a bank account in payments. Those are different models, and forcing them into one Driver class produces a bloated compromise. DDD gives each its own bounded context with its own language and, ideally, its own team.
The payoff is alignment between the software and the organisation, clear ownership, and a shared vocabulary that cuts down on misunderstanding. The costs are also real. You need deep domain knowledge to draw the contexts correctly, the boundaries can be subtle, and integrating between contexts is hard work. Crucially, DDD is a strategy for dividing a domain, not a complete architectural specification: it will not tell you how to arrange the code inside a context. The book recommends it for complex domains with several subdomains and large teams.
The most familiar answer slices horizontally. A presentation layer holds screens and controllers, a business-logic layer holds services and rules, and a data-access layer holds repositories and persistence. It is well understood, makes it easier to swap a technology (change the database without rewriting the screens), and works well for small teams on conventional applications.
The weaknesses are more structural. Three or four layers are a coarse grid, and the book points out the layered model gives no guidance on volatility. The middle layer tends to swell, because nearly everything is "logic". Newer concerns, such as caching, messaging or calls to an AI model, have no obvious slot, so they end up wherever the nearest developer put them. It suits traditional applications that divide cleanly into interface, logic and data.
Clemens Szyperski's 1997 treatment of software components framed the system as a set of reusable, independently deployable pieces. In the ride-sharing app the obvious candidates are a payment component, an authentication component, a notification component and an analytics component, each shared by the rider app, the driver app and the operations console. Interfaces are explicit, parts can evolve separately, and in principle you can build a marketplace of them.
Good components are hard to design, though. Shared components bring versioning headaches, integration overhead, and governance questions about who owns the payment component when three product teams depend on it. The approach shines in platform ecosystems where several applications share a pool of parts, and is hard to justify elsewhere.
| Strategy | Cuts along | Best question it answers | What it leaves open |
|---|---|---|---|
| Functional | Features | What does the user see? | Shared data, drifting boundaries |
| Object-oriented | Domain nouns | What are the things in this business? | Deployment units, unclear module edges |
| Domain-driven | Business contexts | Where does the language change? | The internal architecture of a context |
| Layered | Technical concerns | Which technology does this touch? | Where new concerns go; rate of change |
| Component-based | Reusable units | What can be shared? | Versioning and governance |
The book's own comparison scores each strategy on granularity, change accommodation, tooling support and complexity, and concludes that none addresses every concern. That matches experience. Mature systems usually mix approaches. A common stack today has services drawn around bounded contexts, each service layered internally, and the layers arranged to keep dependencies pointing inward.
Combination sounds like a solution, but it carries a hidden cost: overlapping rules with no tiebreaker. Suppose your ride-sharing team has a service per bounded context, and inside each one a classic three-layer design. A new requirement arrives to retry failed calls to the mapping provider. Does it belong in the service's data layer, in a shared component, in a gateway, or in the matching context itself? Each strategy gives a different, defensible answer, and the team ends up settling it by argument or habit.
When enough such decisions are made case by case, the structure acquires a character of its own, and not a good one. Two developers place similar code in different spots, nobody can say which is correct, and tools cannot check either choice because there is no rule to check it against.
Look back at the table. Every row picks an axis that is a property of the system as it exists today: what it does, what it models, what it means, which technology it uses, what could be reused. None of them take the rate of change as the organising criterion, even though change is the main cost driver in any system that lives for years.
Consider two things inside the ride-sharing app. The identity and basic shape of a trip has barely changed since launch. The surge-pricing formula is tuned by the pricing team every few weeks. Under a feature-based split, both live in the same modules and share a release cycle. Under an object-oriented split, both hang off the same classes. Under layers, both sit in the business tier together. Nothing in any of those structures records that one is bedrock and the other is shifting sand, so every pricing experiment is built on top of, and tested against, the most sensitive code in the system.
A quick experiment makes the gap visible. List the ten things that changed most in your system over the last year. Then check whether they cluster inside a few modules under whichever strategy your team follows, or whether they fan out across many. In a feature-based design, a new regulation fans out across every feature it touches. In a layered design, a new provider ripples through whichever layers happen to mention it. The strategy tells you where code sits, not how often it will be rewritten.
This is where the first chapter of the book turns. It sets out four requirements for a unified approach: it should give clear, systematic decomposition guidance, accommodate change effectively, support automated verification, and scale from small systems to large ones. The book then argues that Layered Volatility Decomposition meets them, by arranging code in nine layers ordered by how often each is expected to change. The reasoning behind that claim starts with volatility as a decomposition criterion, and the full argument is outlined in the LVD thesis.
Each classic strategy answers a useful question, and each has a situation where it works well: functional for small stable systems, object-oriented for rich domain models, domain-driven for complex businesses, layered for conventional applications, component-based for platforms. The mistake is to treat any of them as a complete method. If your current structure came from one of them, ask what it leaves open, and whether the changes you actually expect next year line up with the boundaries it gave you. For how this compares across whole architectures, see LVD compared with traditional architectures.