Friday afternoon, the team finally agrees: the new notification feature stays inside the monolith for now, no message queue yet. Everyone in the room knows why. One person remembers last quarter's outage with the old queue. Another has the roadmap in mind and would have liked something more flexible. By Monday the details are already fuzzy. Two months later a new teammate opens the code, finds a synchronous call where they'd expect an event, and wonders whether it's a bug.
Architecture decisions often fail as memory before they fail as design. The code still runs and the tests still pass, but nobody can say why the system has this shape. Michael Nygard described what happens next back in 2011: a newcomer facing an unexplained decision can either blindly accept it or blindly change it, and neither is good (Documenting Architecture Decisions). So every refactor starts with a bit of archaeology. Was this boundary on purpose? Is that compromise still needed? Is this odd dependency a bug, or history nobody wrote down?
What goes in a decision record
Nygard's fix was the architecture decision record (ADR): a short text file in the repo, one decision per file, numbered in order. His format has five parts (title, context, decision, status, consequences), and the whole thing should run one or two pages. Martin Fowler's notes on ADRs push for even shorter, typically a single page, and ask you to list every serious alternative with its pros and cons. Over time the records add up to a decision log for the project (adr.github.io collects templates and tools if you want a starting point).
Here's one that fits on a screen:
# 7. Keep notifications in the monolith for now
Status: Accepted
## Context
Notifications go out by email only. Nobody on the team is
on call for a message broker yet, and launch is in six weeks.
## Options considered
- Direct call from the orders module (chosen)
- Message queue with a separate worker
- Third-party notification service
## Decision
Orders calls the notifications module through its public API.
## Consequences
+ One deploy, one place to debug.
- A slow email provider slows down order confirmation.
- Moving to a queue later means changing one call site.
## Revisit when
- We add a second channel (SMS or push), or
- Email latency shows up in checkout traces.
Two sections in there carry most of the value, and they're the two teams skip most often.
The options you didn't pick
Without the rejected options, the next reader reruns the same debate with less context. Someone proposes a queue, nobody remembers why it lost last time, and the team burns an afternoon rediscovering the answer. A few lines on why you avoided a shared database, put off a queue or kept a module inside the monolith can save hours of that. (If you need a checklist for those trade-offs, the monolith post has one.)
The options section also keeps everyone honest about what was uncertain. It records that this was the best answer for your size, traffic, deadline and on-call experience at the time. Fowler points out a side benefit: drafting the record pulls different points of view into the open, so disagreements get talked through while you can still act on them.
A trigger for reopening it
Fowler's advice is to treat ADRs as immutable. Once one is accepted you don't edit it. You write a new record that supersedes it and link the two. Nygard says the same about reversed decisions: keep the old one and mark it superseded. Which leaves a practical question: how does anyone know it's time for the new record?
That's the job of a "Revisit when" section. Write down the signal that would change the answer:
- Traffic on this path passes a number you write down today.
- Two teams start changing the module independently.
- The integration picks up another external provider.
The decision stays put until the world changes, and when it does, the team already agreed on what to watch. Nobody has to argue that the original authors were careless. The record itself said when to come back.
Write it while the trade-off is fresh
Records written at the end of a project turn into polished history. Records written while the decision is being made keep the small facts that rarely survive: the customer deadline, the incident that made the team cautious, the migration that cost too much, the test gap that ruled out a shortcut.
Where they live matters too. Fowler and Nygard both keep them in the source repository next to the code they describe (Nygard used doc/arch/adr-NNN.md). Thoughtworks put lightweight ADRs in the Adopt ring of its Technology Radar in 2017 and 2018, and recommended source control over a wiki so the records stay in sync with the code (Technology Radar). Bonus: a record that ships in the same PR as the change gets reviewed like code.
Good records help people, too
Decision records make a team easier to work in. A newcomer can ask "is this still true?" by pointing at a document, which feels very different from questioning a senior engineer's judgment in a meeting. A maintainer can replace a decision without implying the original team cut corners. Reviewers argue from a shared record, so the most confident voice in the room doesn't get to rewrite the past.
Your future teammates don't need every thought from that Friday meeting. They need enough context that the codebase doesn't read like a puzzle.
Try this week
- Pick one decision from the last month that a newcomer would find odd, and give it a one-page record.
- List at least two options you rejected, with one line each on why.
- Add a "Revisit when" section with one signal you can actually measure.
- Put it in the repo under
doc/adrand link it from the PR that changed the code.