How it works · 3 of 49 Foundation

What are one-way and two-way door decisions in software architecture?

Which decisions deserve the meeting

One-way and two-way doors: Most architecture decisions are cheap to undo (a library, a cache setting) and should be made fast by the team; a few are expensive to undo (a public API, the data model, where data is stored) and deserve slow, careful thought, and good design adds seams so fewer decisions are of the second kind.

Loading the animation…

Say it like this Decide reversible things fast and close to the work, slow down only for the few you can't walk back, and add a seam so fewer decisions are one-way.

Under the hood — for builders
Real case: the source, word for word
Jeff Bezos, Amazon letter to shareholders for 2015: "Some decisions are consequential and irreversible or nearly irreversible – one-way doors – and these decisions must be made methodically, carefully, slowly, with great deliberation and consultation." "But most decisions aren't like that – they are changeable, reversible – they're two-way doors." "Type 2 decisions can and should be made quickly by high judgment individuals or small groups." The warning: as organisations grow they tend to use the heavy Type 1 process on most decisions, and "the end result of this is slowness, unthoughtful risk aversion, failure to experiment sufficiently, and consequently diminished invention."
Real case: a one-way door kept open for six years
Stripe treats every published field as permanent. Its API is versioned by date (e.g. 2017-05-24); an account is pinned to the newest version on its first request; each breaking change is a small module that rewrites a response back to the older shape. Requests walk back through the modules to the caller's version:
Run here: what an adapter saves
A toy ledger service built for this card: 12 modules making 32 database calls. Swap the database and count what must change. Calling the driver directly: every module. Through one adapter (a small class all modules call instead): one file.
Sort by what an undo touches
Undo cost: the work, people and approvals needed to walk a decision back. It grows with who depends on the decision, not with how big it felt. The card's six:
Make a door two-way
Put a seam in front: an adapter or interface (taught in B2). Version public contracts and only add fields. Ship behind a feature flag, a switch that turns new code on or off without a deploy. Keep data portable: export paths, no vendor-only formats.
Measure it
Share of decisions with a written record (an ADR, architecture decision record) · days a one-way decision waited · days a two-way one waited · rollbacks per quarter.
Watch out
Doors drift: a library becomes one-way once forty services import it. Re-sort at each review. A one-way door made fast is the costly mistake; a two-way door made slow is the common one.
Sources
Amazon.com 2015 letter to shareholders, SEC Form 8-K exhibit 99.1 (April 2016), read in full · Leach, "APIs as infrastructure: future-proofing Stripe with versioning", Stripe blog (5 Aug 2017) · toy adapter count, Python, run for this card 18 Nov 2026.

What happens in the one-way and two-way doors animation, step by step?

  1. Amazon's test: a two-way door you can walk back through; a one-way door locks behind you.
  2. Your turn: which door does each decision go through? Drag a card to a door, or tap a card and then a door.
  3. Undo cost decides the door. A public field name lives in every customer's code; in 2017 Stripe still served every API version back to 2011.
  4. The common failure is backwards: heavy process on two-way doors, a quick yes on one-way doors.
  5. Good architecture turns one-way doors into two-way ones: put a seam in front of what you might regret.
  6. A seam only works if the parts behind it are loosely joined. Next: coupling.

What everyday example explains one-way and two-way doors?

Decorating vs pouring the foundation. Paint can be redone next weekend, so let whoever holds the brush choose. Once the concrete sets, moving the house means knocking it down, so you survey first. A builder who leaves a removable panel over the pipes has turned a demolition into an afternoon.

Why should a team care about one-way and two-way doors?

You decide where review time goes. Spend it on public contracts, the data model and where data lives; let teams choose libraries and settings alone; and pay a little for an adapter where a one-way door can be avoided.