You need to get good at Trade offs

Every architecture decision sits in a triangle of qualities, constraints, and uncertainty.

  • Qualities = the “-ilities”: availability, latency, security, operability, evolvability, etc…
  • Constraints = time, budget, team skills, compliance, legacy.
  • Uncertainty = demand volatility, fuzzy requirements, vendor roadmaps, unknown failure modes.

Your job is to understand these forces, balance them properly (with data or with estimates), and choose by making the right trade off.

By “right” here, I mean the trade-off that will generate the greatest business value, that is, value for the company and/or for the world, both in economic terms and in terms of reputation (quality, robust product, handling all risks, etc..). Not the one that is technically perfect.

So, You need to master the skill of evaluating trade-offs, looking at and weighing multiple facets at once, not just a single one.

Someone once said that the first law of software architecture is:

“Everything in software architecture is a trade-off.”

One mistake some people make is to look only at the pros of one solution without weighing the cons; another mistake is to focus on a single aspect (perhaps one they know very well or are interested in) and ignore the rest.

To arrive at the right compromise, the assessment needs to be as balanced as possible, considering not just the possible solutions but all the advantages and disadvantages of those solutions in the context and domain where they will ultimately be implemented.

That’s why an architectural decision should be made with due time and not rushed.

For example, you have to judge whether it makes sense to pursue security or performance and how much to pursue them given the costs to other aspects;

In some cases it doesn’t make sense, because while you might gain performance, performance in that particular project isn’t critical, and so, for something nonessential, you’ve significantly increased the system’s complexity.

It makes no sense.

You rarely get low latency, strong consistency, high availability, strict security, and low cost all at once. Pushing one quality usually pulls another. As if it were a blanket.

Another examples of doing trade offs are: should I use a modular monolith or should I go to microservices architecture? Which granularity should I split a service? How will they communicate: async or sync? and using which protocols?

So you need to get good at assessing the pros and cons, balancing them in the context of a system qualities, constraints, risks, uncertainties in order to maximize business value

There is no one solution for all since every project is different in domain, constraints and requirements.

Every assessment must be made in the context of the business you’re operating in. This is crucial.

You can’t make decisions based solely on technical factors without weighing the context, the risks, the environment, contraints and the business value at stake.

Another thing to know is that trade-offs aren’t forever. So, you eventually need to review your choice to evaluate if it still maters today.

How to get better at trade-offs (a practical loop)

  1. Find the most critical qualities and constraints
    • Find the top 3 most critical quality attributes for the business and the project (e.g., availability, latency, security) and their target levels.
    • Note hard constraints (budget, deadline, regs, existing tech).
  2. Think and design different solutions
    • At least 2–3 materially different designs/solutions. If you have only one, you’re not choosing.
  3. Evaluate explicitly
    • Build a simple trade-off matrix (You can also use an excel and create a table in it). Score options against the top attributes and constraints.
    • Identify the biggest risks/unknowns per option.
  4. If possible prototype to reduce uncertainty
    • Prototype the solution (maybe using AI to help to the prototype quicker)
  5. Decide and document
    • Take the decision that maximize business value. Use an ADR (Architecture Decision Record) to document it. Capture why you chose X and why you didn’t choose Y.

If you don’t have a project, just search online “architectural katas” or ask ChatGPT (or any other LLM) to generate an architectural kata for you and start practicing.

Common trade-offs (with quick heuristics)

There are some common trade offs in software projects. Among them you find these:

  • Consistency vs availability: It’s very hard to have both. Prefer availability for read-heavy, human-tolerant systems; prefer stronger consistency for financial invariants or for systems where data integrity is paramount.
  • Build vs buy: Buy for commodities; build where you differentiate. Check exit costs & lock-in.
  • Microservices vs monolith: Start modular monolith; earn your microservices with scale/ownership boundaries.
  • Synchronous vs async: Async for throughput/decoupling; sync for request/response simplicity and UX determinism.
  • Caching vs freshness: Cache when reads dominate and staleness is tolerable; set explicit TTL/SLO for freshness.
  • Performance vs cost: Know your SLOs; don’t buy latency you don’t need.


Discover more from Hvarot | AI Architecture & Engineering

Subscribe to get the latest posts sent to your email.


Comments

Leave a Reply