Löwy's Insight: Draw Boundaries Around Things That Change Together

Ask a team why they split their code into modules and you will hear about reuse, tidiness and ownership. Juval Löwy's answer is blunter: we draw boundaries so that change stays contained. If nothing ever changed, one enormous file would be perfectly fine. Follow that premise honestly and you arrive at a surprisingly complete way of deciding where code goes.

Boundaries exist for one reason

Take the premise seriously for a moment. A boundary is only useful when something on one side of it changes and the other side is left alone. The smaller the area an edit can disturb, the cheaper the edit. Engineers sometimes call that area the blast radius, and decomposition is the craft of keeping it small.

From there the organising rule follows almost mechanically. If boundaries are there to manage change, draw them around things that change at the same pace. Put the fast-moving parts together and the slow-moving parts together. Then add a direction: fast code may lean on slow code, but slow code must never lean on fast code.

Picture a ticketing service. The seat-map data model changes when the venue business changes, perhaps twice a year. Refund policy changes when finance or regulators say so. The promotional banner on the home page changes whenever marketing has an idea. If all three live in one module called events, a banner tweak travels through the same review, test run and release as a change to the data model. You are paying the price of your fastest component on every change to anything.

Split them by pace and the banner ships alone. The foundations never notice it happened, because nothing underneath depends on the banner.

An idea with a procedure attached

The book is careful to say that the principle itself is not what made Löwy's work matter. Plenty of people had said "separate concerns". What the book credits him with is turning the thought into something a team can carry out on a Monday morning. Three pieces made that possible:

  • A classification process. A way to sort components by how often they are expected to change, instead of by how they feel.
  • A build-level enforcement mechanism. The dependency direction is checked by the build system, not remembered by people.
  • A shared vocabulary. Names for the roles a component can play, which the book covers in the Managers, Engines and Accessors material (see that article).

It helps to know what the alternatives looked like. The book describes the guidance of the time as either too abstract ("draw boxes and arrows") or too concerned with the shape of the business domain, as with bounded contexts, to answer a plain physical question: which folder does this file go in, in a way the compiler can police? Volatility gives a way to answer it.

What IDesign is, and is not

Löwy's body of work is called IDesign, and the book spends a few paragraphs being precise about it, because it is often described loosely. IDesign combines four things:

  1. Volatility-based decomposition as the strategy for finding boundaries.
  2. A role-based design style, with managers, engines and accessors as its cast.
  3. A development process that carries architectural governance inside it.
  4. A method for shaping team structure to match the volatility layers.

The fourth is easy to overlook. Löwy argues that the organisation chart should mirror the dependency graph, on the grounds that Conway's Law works in both directions. Teams shape systems, and a deliberately shaped system can tell you how to shape teams.

The book also issues a candid warning. VBD is not something you master by reading one text. Much of IDesign is taught in courses and consulting engagements, where a real team argues over a real system, and the published material is thinner. Löwy's book Righting Software (2019) is the most accessible written entry point. Any written summary, the book says of its own, is an approximation, because the subtleties appear only when you are standing in front of a system arguing about where a component belongs.

That honesty is worth noting. It means the rest of this series treats VBD as a starting point to be applied and tested, not as scripture.

The takeaway

Before you create the next module, ask a question that has nothing to do with features: which of these things will change together, and which will change alone? The answer tells you where a boundary will earn its keep. For the three rules that turn this question into a working method, continue with three principles behind volatility-based decomposition, and for the wider argument see volatility, the axis architects ignore and the LVD thesis.

What the book covers

  • The pre-VBD pathologies that Löwy's approach was built to answer
  • The three anchoring principles of VBD, stated in full
  • What IDesign delivers as a whole, and how to read about it responsibly
  • Why the organisation chart is meant to mirror the dependency graph