Nguyen Le Phong

Choose Boring Boundaries, on Purpose

Why good module boundaries look plain: each change lands in one place, no flag-stuffed abstractions, lines follow language and teams, and a clear rule for what crosses.

Say you're in an architecture review and someone draws a new abstraction on the whiteboard: a generic rules engine that pricing, promotions and shipping fees could all plug into. It looks elegant. It could handle a dozen future cases. It also makes the feature you're shipping this month harder to explain. After a few minutes, the useful question isn't whether the design is clever. It's whether this boundary makes the next change more boring.

An architecture review table with a simple boundary map, service cards, arrows and a few sticky notes.
A good boundary map looks plain. Every box has an owner, and you can guess where a rule lives before you open the code.

Boring here is a compliment. A boring boundary is one where you can guess where a rule lives, who can change it and which test fails when it breaks, before you open a single file. Let's look at how to pick boundaries like that on purpose, and how to spot the clever ones that cost you later.

What "boring" actually means

Dan McKinley's essay Choose Boring Technology (2015) defines boring tech as tools whose capabilities and, more importantly, failure modes are well understood. He also suggests every company gets about three "innovation tokens" to spend on new, unproven things, so spend them where they matter.

His essay is about databases and languages, but the idea carries over to boundaries well. A boring boundary has well-understood failure modes. When pricing goes wrong, everyone already knows to look in the pricing module, and the bug can't hide in the email sender. A clever boundary, like the rules engine on the whiteboard, spends an innovation token on code structure. Sometimes that's the right place to spend it. Usually, the product deserves it more.

The test: one change, how many places?

The quickest way to judge a boundary is to run a likely change through it. Pick something that will plausibly happen in the next six months and count how many modules, files and teams it touches.

Likely change With a boring boundary With a blurry one
A new discount rule One change in the pricing module, plus its tests Pricing, the checkout page and the invoice mapper all compute discounts their own way
Switching the login provider A new adapter, product code untouched Provider token types show up in a dozen screens
A new notification channel A new sender behind the existing notify interface Every feature that sends messages needs a new flag

If the answer is "one module and its tests," your boundary is doing its job, however plain it looks. If the answer is "four modules and a sync with two teams," the boundary is decoration, even if it has a nice name and its own folder.

Clever abstractions grow flags

Sandi Metz described how a shared abstraction goes wrong. Someone spots duplication and extracts it. A new requirement almost fits, so the next person adds a parameter and a conditional. Then another. Eventually nobody can follow it. Her conclusion: "duplication is far cheaper than the wrong abstraction" (The Wrong Abstraction). You can usually spot one by its signature:

declare function sendNotification(
  user: User,
  template: string,
  opts?: {
    skipIfMuted?: boolean;
    forceSms?: boolean;
    legacyFormat?: boolean;
    isAdminCopy?: boolean;
  },
): Promise<void>;

Each optional flag is a caller that didn't quite fit. Metz's fix is unglamorous: inline the abstraction back into each caller, delete the parts each caller doesn't need, and only then look for the abstraction that's really there. That's choosing a boring boundary after the fact. It's cheaper to choose one up front.

Draw boundaries where the language and the team change

Two old ideas tell you where a boundary should go. The first is Eric Evans's bounded context from Domain-Driven Design. Martin Fowler's summary quotes Evans: "total unification of the domain model for a large system will not be feasible or cost-effective." Words like "Customer" and "Product" can mean different things in a sales context and a support context, and a single model that tries to serve both causes confusion again and again (Bounded Context). When the vocabulary changes, that's a good place for a boundary.

The second is Conway's law from 1968: an organization that designs a system will produce a design whose structure copies the organization's communication structure (Mel Conway, How Do Committees Invent?). In practice, a boundary that two teams share ends up owned by neither. Boring boundaries line up with who actually owns the code, so there's one obvious person to ask and one team that gets paged.

For more on this, Choose the Boundary Before You Choose the Tool covers picking the line before the technology, and Name a Boundary, Then Give It Examples covers making a boundary's meaning concrete.

Say what's allowed to cross

A boundary is mostly a rule about traffic. Write down what may cross it:

  • Plain data, such as an order ID, an amount or a list of line items.
  • Intent, such as "reserve stock for this order" or "price this cart."
  • Not framework objects, ORM entities or a vendor's response types. Once those cross, every change to them becomes your change too.

A shortcut that crosses the line can be fine in a spike. In production code, every future reader pays for it. If you need a refresher on which way the arrows should point, see Dependency Direction in Plain Language.

Try this week

  • Pick one change likely in the next six months and count the modules and teams it would touch.
  • Find one function with three or more boolean options and ask whether it's an abstraction that stopped fitting.
  • For one boundary, write a two-line note: what may cross it, and who owns it.
  • Next time a design proposes a new generic layer, ask which future change it makes easier, and whether that change is actually on the roadmap.

If an abstraction looks impressive, take a minute to ask what it makes easier tomorrow. If it cuts coordination, shrinks the area you need to test and gives the next person an obvious place to work, boring is the design doing its job.

What did you think?

Frequently asked questions

What is a boring boundary in software architecture?
A module or service boundary whose behavior is predictable: you can guess where a rule lives, who owns it and which test fails when it breaks, before you open the code. It borrows Dan McKinley's idea that boring technology is valuable because its failure modes are well understood.
How do I know if a boundary is in the right place?
Run a likely change through it. If a new discount rule or a new login provider touches one module and its tests, the boundary works. If it touches several modules and needs a sync between teams, the boundary is in the wrong place or exists only on paper.
What is the wrong abstraction?
Sandi Metz's term for shared code that no longer fits its callers, usually recognizable by a growing list of parameters and conditionals. Her advice is to inline it back into each caller, delete what each caller doesn't need, and extract a new abstraction only if a real one appears. She notes that duplication is far cheaper than the wrong abstraction.
Where should I draw module boundaries?
Where the business vocabulary changes, as in Eric Evans's bounded contexts, and where team ownership changes, since Conway's law says a system's structure tends to copy the organization's communication structure. A boundary shared by two teams tends to be owned by neither.
What should be allowed to cross a boundary?
Plain data, such as IDs and amounts, and intent, such as reserve stock for this order. Framework objects, ORM entities and vendor response types should stay on their own side, because once they cross, every change to them spreads to everyone who depends on the boundary.