Architecture Review and Risk
A design is a bet. A review checks the bet before it gets expensive. Walk the design through your top quality scenarios and write down four things: risks, non-risks, sensitivity points and trade-off points. Rank the risks by likelihood and impact, and give each big risk an owner and a plan. Choose a light review for small decisions and a deeper one for big, risky systems.
Author: bezzad
Contents
The problem: we found out on launch day
Our online shop moved to a new design before the big yearly sale. Everyone liked the diagrams. On the first morning of the sale, the single orders database hit 100% CPU, checkout took 40 seconds, and the team spent the day adding servers by hand.
Afterwards someone said: “We knew the database was the weak point.” Some people knew. Nobody wrote it down, nobody measured it, and nobody owned it.
A review would not make the design perfect. It would make the weak point visible, measured and owned before the sale.
The idea: check the bet against the scenarios
Every architecture is a set of bets: “one database is enough”, “the cache will hide the slow service”. A review takes the design and the quality scenarios (see the lesson on architecture characteristics) and asks, for each scenario: does this design meet it, and how do we know?
The findings fall into four groups:
- Risk. A decision that may stop us from meeting a scenario. “One database may not hold the sale peak.”
- Non-risk. A decision that clearly meets a scenario. Writing these down tells people what they can stop worrying about.
- Sensitivity point. A setting or part where a small change moves a quality a lot. “Checkout speed depends on the cache size.” Watch these closely.
- Trade-off point. A decision that helps one quality and hurts another. “Encrypting every message helps security and costs speed.” These need a conscious choice, usually in an ADR.
How to run a scenario-based review
This is a light version of well-known methods such as ATAM (Architecture Tradeoff Analysis Method). The full method is bigger; this is enough for most teams.
- Present the business goals. Someone from the business explains why the system exists and what matters most this year.
- Present the architecture. The architect shows the context and container diagrams and the key ADRs. Twenty minutes, not two hours.
- Collect and rank scenarios. Stakeholders write scenarios with numbers (“at 20 times normal traffic, checkout answers in under 2 seconds”) and vote for the most important ones.
- Walk the top scenarios. For each one, trace it through the design: which parts take part, what can fail, what was measured. Write each finding in one of the four groups.
- Group the risks into themes. Ten small risks often share one cause, like “nobody owns capacity planning”. Themes are what you report to managers.
- Agree on next steps. Each big risk gets an owner, an action and a date.
Not every review must be big
- Checklist review. A fixed list (logging, backups, timeouts, security, limits) used on every new service. Cheap, and it catches the usual gaps.
- Peer or expert review. An experienced person reads one design or ADR and asks hard questions. Good for one important decision.
- Scenario workshop. The process above, with stakeholders, for big or risky systems: a new platform, a migration, a system that handles money.
A simple rule: the more expensive a mistake is to undo, the deeper the review.
Rank the risks
You cannot fix every risk. Rank them with two questions: how likely is it, and how bad is it if it happens?
For each risk, choose one answer:
- Reduce it. Change the design: add a read replica, a queue in front of the database, a second region.
- Avoid it. Remove the cause: do not build the risky feature this year.
- Transfer it. Let someone else carry it: a managed database with an SLA, insurance, a vendor.
- Accept it. It is cheap enough to live with. Write it down with a reason, so it is a decision and not an accident.
Keep a short risk list next to the ADRs: risk, rank, owner, action, review date. Look at it again at each big release.
Reviews as part of governance
Governance sounds heavy, but the goal is simple: important rules are followed, without slowing teams down. Light ways to do it:
- Principles and guardrails written once (“each service owns its data”), checked by fitness functions where possible.
- ADRs for big decisions, reviewed in pull requests by people from other teams.
- An architecture forum that meets regularly, where teams bring designs early. It advises; the team still decides and owns the result.
- A check on cost. Some decisions are mainly about money: build or buy, cloud bill, the cost of delay. Put a rough number on them; even a range like “20 to 40 thousand a year” helps the discussion.
Common mistakes
| Mistake | Result | The right way |
|---|---|---|
| Review at the end, before launch | Findings come too late to change anything. | Review early, when the design is still cheap to change. |
| No scenarios, only opinions | Long debates about taste. | Scenarios with numbers decide what “good” means. |
| Only listing risks | People lose trust in what does work. | Also write non-risks, sensitivity and trade-off points. |
| Risks without owners | The same list a year later. | Owner, action and date for each big risk. |
| The review board says yes or no | Teams hide designs or wait for weeks. | Advise early and often; the team decides and writes the ADR. |
Summary in six lines
- A design is a set of bets; a review checks them before they are expensive.
- Walk the top quality scenarios through the design.
- Write four kinds of findings: risks, non-risks, sensitivity points and trade-off points.
- Rank risks by likelihood and impact; reduce, avoid, transfer or accept each one.
- Every big risk gets an owner, an action and a date.
- Match the depth of the review to the cost of being wrong.