Trade-off analysis
Every architecture decision gives something up. A cache improves speed but risks stale data. Microservices let teams deploy independently but make data consistency and operations harder. A managed cloud service reduces operations work but increases lock-in. There’s rarely a “best” option, only the option whose costs you’re most willing to pay.
Trade-off analysis makes those costs visible before the decision, compares options against the qualities the business actually cares about, and leaves a record so the next person understands why.
Diagram
Section titled “Diagram”- Frame one decision and list real options, including "do nothing" or "keep what we have".
- Score each option against weighted criteria drawn from the quality attribute scenarios; test the uncertain ones with a spike.
- Name what each option gives up and the risks it carries, not just its score.
- Record the decision and the conditions that would make you revisit it.
A worked example
Section titled “A worked example”Decision: how should the order service notify the warehouse, billing and email services when an order is placed?
Criteria and weights come from the agreed scenarios: reliability matters most, then the ability for teams to change independently, then operational effort.
| Criterion (weight) | A. Synchronous REST calls | B. Message queue per consumer | C. Event stream with outbox |
|---|---|---|---|
| Reliability: no lost orders (×3) | 2 | 4 | 5 |
| Teams change independently (×2) | 2 | 3 | 5 |
| Low operational effort (×2) | 5 | 4 | 2 |
| Easy for the team to learn (×1) | 5 | 4 | 2 |
| Weighted total | 25 | 30 | 31 |
B and C end up a single point apart, which is common and useful: the matrix doesn’t make the decision, it focuses the conversation. The real question becomes “is replayable history and full decoupling worth running an event platform?” If the organization already runs one, choose C. If not, choose B now and record “adopt an event stream when a third team needs order events” as a revisit trigger.
How it works
Section titled “How it works”- Frame one decision at a time. “Which database?” is too broad; “where do we store order history that must be kept for seven years and queried monthly?” is decidable.
- Always include at least three options, one of which is the status quo. Two options invite a false choice.
- Use criteria from quality attribute scenarios, weighted by business priority. See quality attributes.
- Reduce uncertainty with evidence: a spike, a prototype, a load test or a reference call, when a score is a guess and the decision is costly.
- Name sensitivity points and trade-off points. In ATAM terms, a sensitivity point is a decision that strongly affects one quality. A trade-off point affects several in opposite directions. These are where risk hides.
- Separate reversible from irreversible decisions. Spend analysis time on the ones that are expensive to undo; decide quickly on the rest.
- Record it in an architecture decision record: context, options, decision, consequences and revisit triggers.
- Better decisions, grounded in agreed priorities rather than the loudest voice.
- Faster agreement, because disagreements become specific: a weight or a score, not a whole option.
- A durable record that prevents the same debate every six months.
- False precision: numbers can look more certain than the judgment behind them.
- Time: a formal method like ATAM takes days with many stakeholders.
- Can be gamed by choosing weights to justify a decision already made.
When to use it
Section titled “When to use it”- Decisions that are expensive to reverse: platforms, data stores, integration styles, build vs buy.
- Decisions where stakeholders disagree or the trade-offs aren’t obvious.
When to avoid it
Section titled “When to avoid it”Don’t run a scoring exercise for easily reversible decisions or ones with an obvious, low-risk answer. Decide, note it in a line, and move on.
Common pitfalls
Section titled “Common pitfalls”- Deciding first and scoring later to justify the choice.
- Equal weights for everything, which hides what actually matters.
- Ignoring the cost of change and the team’s current skills.
- No revisit trigger, so a decision outlives the conditions that justified it.
Related patterns
Section titled “Related patterns”- See it applied: Example Lending, sixteen decision records with alternatives and consequences
- Quality attributes and NFRs
- Documenting architecture with C4
- ADR generator
- Microservices vs modular monolith
- Orchestration vs choreography
Glossary: ADR, transactional outbox
Further reading
Section titled “Further reading”- SEI, Architecture Tradeoff Analysis Method (ATAM) (opens in a new tab)
- Michael Nygard, Documenting architecture decisions (opens in a new tab)
- Neal Ford, Mark Richards, Pramod Sadalage and Zhamak Dehghani, Software Architecture: The Hard Parts (O’Reilly, 2021)
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.