Every architectural decision has a price: the characteristics of a system are interconnected, and gaining in one place means losing in another. A trade-off is not a sign of poor design but its very essence: the goal is not to get rid of trade-offs, but to accept them deliberately and remember what was paid for them.
What a trade-off looks like
Classic “gain — price” pairs that almost every project encounters:
| Decision | What we gain | What we pay |
|---|---|---|
| A cache in front of the database | fast repeated reads | risk of stale data and the complexity of cache invalidation |
| A synchronous call instead of a queue | simple code and an instant response | service coupling and cascading failures |
| Microservices | independent deployment and scaling by teams | network latency, distributed transactions, operations |
| Strong data consistency | predictable write results | latency and availability constraints |
| A ready-made cloud service | faster launch and less code | vendor lock-in and the billing model |
How to make and record trade-offs
A decision is made against criteria, not out of habit: first establish which quality attributes matter more for the system, then compare the options against that scale and record what was chosen, what the alternatives were and what will have to be paid:
- rank the quality attributes: for a payment system consistency matters more than latency, for a news feed the other way round;
- for each option, write down the gain and the price, including the less obvious costs — operations and hiring;
- record the decision and its consequences — for example, as an architecture decision record (ADR) — so that a year from now you remember why it was made that way.
ATAM
Major trade-offs are examined with ATAM (Architecture Tradeoff Analysis Method), developed by Rick Kazman, Mark Klein and Paul Clements at the Software Engineering Institute (SEI) at Carnegie Mellon University and described in a 2000 report. The name speaks for itself: the method shows not only how well the architecture meets its quality goals, but also how those goals interact with one another.
The analysis proceeds in nine steps grouped into two phases: first the architect and a small team work through the approaches and scenarios, then the stakeholders do the same — and check the results of the first phase. Along the way, risks, sensitivity points and tradeoff points are recorded. A sensitivity point is a property on which a single quality attribute critically depends — for example, a component’s priority for latency. A tradeoff point is a parameter behind which several such properties stand: increasing it improves one attribute and worsens another. The classic example is link speed: the higher the throughput, the lower the reliability.
Sources
the term is written from these pagesVerified 8 Nov