Book Deep Read · Fundamentals of Software Architecture · Chapter 20
Fundamentals of Software Architecture · Ch 20 · Mark Richards & Neal Ford · 2020
You run an online shop and a big sale is coming next month. The boss asks the tech lead: "Where is it most likely to break?" The lead says: "Everything looks fine, I'm just a bit worried about the database." That answer is useless. How worried? More worried than about anything else? Should we spend money on it? This chapter is about turning that vague unease into something you can rank and take to the boss when you ask for a budget.
A forecast never just says "bad weather tomorrow". It tells you two things: will it rain, and how hard. A small chance of drizzle you ignore; a big chance of a storm cancels the trip. Judging a system works the same way: how likely is something to go wrong, and how bad is it if it does? Score each, combine them, and you know what to watch first.
Risk used to be one architect's gut-feel list. Three problems: gut feelings can't be compared ("a bit worried" versus "quite worried"); one person always has blind spots; and the list goes into a drawer while the system keeps changing for three more months.
Move one is scoring: rate each worry low, medium or high on "how likely" and "how bad", and combine them into one score, like the red-amber-green lights on a medical report.
Move two is one big table: across the top are parts of the business, such as sign-up, checkout and shipping; down the side are the qualities you care about, such as coping with crowds, staying up, keeping data correct. Every cell gets a score, and the rows and columns that glow red jump out. A little arrow next to a cell shows whether it got better or worse since last time.
Move three is group fault-finding: send a diagram of the system to a few colleagues and ask each of them to put sticky notes on it alone first: "I'm worried about this bit", plus a score. Then everyone sticks their notes on one shared diagram. The most valuable spots are where scores disagree wildly: if one person gives the top score and everyone else gives a low one, that person knows something the others don't. Finally, agree on fixes, price them, and go talk to the boss.
Risk stops being one person's private anxiety and becomes a list the whole team can see, rank and track, and spending finally has a basis. It is not a one-off: when the system changes, do it again. The honest cost: the scores are still human guesses. It looks like maths, but it is really a structured conversation.
Analyzing architecture risk = score how likely times how bad, lay the scores out in one table, then have everyone look alone, compare together, and agree on fixes.
Want the exact scoring rules of the risk matrix, how the assessment table sums and shows trends, why each of the three risk-storming steps is designed the way it is, and the blind spot of multiplying scores? → Switch to Deep
You think risk analysis is an architect writing a list from experience. FoSA Chapter 20 turns it into routine work that is quantified, collaborative and continuous: the risk matrix turns one worry into a score from 1 to 9; the risk assessment lays scores out as a heat map of "architecture characteristic × business domain" with trends; and risk storming has the team find risks alone, reconcile disagreements, and then negotiate mitigation with costs attached.
The second chapter of Part III, "Techniques". It follows Chapter 19, "Architecture Decisions", which covers making decisions and recording them in ADRs; this chapter finds where decisions are still needed. It leads into the soft-skills chapters from 21 onward, where diagramming is exactly what risk storming depends on. Real-world counterparts: capacity reviews before a big sale, architecture reviews before launch, quarterly technical-risk audits.
The book opens by saying that every architecture has risk, around availability, scalability, data integrity and more, and that analyzing it is one of the architect's key activities. The hard part isn't knowing that risk exists. It is three things: how big (can risks be compared?), where (one person's view has blind spots) and how it stands now (the system keeps changing).
What happens if you don't solve this? Take an e-commerce site handling around a million orders a day with an availability target of 99.9%, which allows about 43 minutes of downtime a month. If the order database is a single instance and recovery takes an hour, one outage burns through the whole month's budget. As long as that risk lives only as the architect's "slight worry", it never gets prioritized or funded. When it does happen on sale day, the postmortem finds that someone had noticed long ago; nobody had asked them.
The risk matrix underpins every tool in the chapter. It asks two questions: overall impact (how bad if it happens) and likelihood (how likely it is to happen), each rated low 1, medium 2, high 3, and multiplies them. 1–2 is low risk, 3–4 medium, 6–9 high (5, 7 and 8 never appear).
Two operating details from the book are worth remembering. First, rate impact before likelihood: asking "how bad would it really be?" first stops people from downplaying a serious problem because "that's unlikely, surely". Second, unproven or unfamiliar technology automatically gets the top score of 9: if you don't even know how it fails, the matrix can't be applied, so treat it as the biggest risk until proven otherwise.
Why multiply, and why only three levels? Once two fuzzy judgments become numbers they can be ranked, compared and aggregated; and three levels are coarse enough to stop arguments over "is this a 6 or a 7?", which would only manufacture false precision. Example: the order service runs on a single database instance and its loss stops all checkouts, impact 3; it has failed once in two years, likelihood 2; score 6, high risk.
One score describes one point. A risk assessment rolls them into a report: rows are risk criteria (usually architecture characteristics such as scalability, availability, performance, security, data integrity), columns are business domains or services (e.g. customer registration, checkout, order fulfillment, shipping), and each cell is scored with the risk matrix.
The value is in summing both ways: by row, data integrity totals 22, the weakest characteristic in the system; by column, checkout totals 29, the riskiest domain. The book adds two refinements. One is filtering: show only the high-risk cells and leave the rest blank. In a report for management, less is more; a screen full of 1s and 2s buries the real 9s. The book frames this as improving the signal-to-noise ratio. The other is direction: a plus or minus sign, or an arrow, beside a score shows whether it improved or worsened since the last assessment. Direction is best derived from continuous measurement via fitness functions: if a weekly automated load test pushes the checkout endpoint's p99 latency from 300 ms to 800 ms, the arrow points up, no gut feel needed.
The assessment gives you scores, but where do they come from? One person scoring alone will have blind spots. Risk storming is a collaborative exercise for finding architectural risk within one particular dimension. The book splits it into three steps.
Preparation: the architect sends an invitation with the architecture diagram and the single dimension to analyze this time (say, availability only). One dimension per session keeps everyone's attention on the same class of problem. Participants are usually the architect plus senior developers and tech leads: developers know the implementation best, and taking part gives them a sense of ownership of the risk.
Identification: each person scores areas of the diagram with the risk matrix alone, without discussion, on sticky notes. Why alone? Because once a meeting starts, the first speaker, especially the most senior one, pulls everyone's judgment toward theirs: groupthink and anchoring.
Consensus: everyone puts their notes on one shared diagram. Areas where scores agree are confirmed quickly; the real payoff is in the disagreements. Three people give the load balancer a 2, one gives it a 6; only in discussion does it emerge that this one person knew the load balancer isn't clustered. Disagreement isn't noise; it signals that someone holds information the others lack.
Mitigation: change the architecture where scores are high: add redundancy, split a database, introduce caching, isolate entry points. Every option costs something, so this step often means negotiating with business stakeholders: if the full fix is too expensive, fall back to a cheaper compromise that still drops the score a level. The book's running example is a nurse-hotline diagnostics system, analyzed in successive rounds for availability, elasticity and security, each exposing different hot spots; one security mitigation was to give each type of user its own API gateway, so the self-diagnosis entry point can't reach medical records (paraphrasing the book's example).
The same matrix works for agile story risk analysis: likelihood becomes "this story won't finish this iteration", impact becomes "what slips if it doesn't". High-scoring stories get watched and split first.
One idea runs through the whole chapter: risk drifts. New features, doubled traffic and upgraded dependencies all move the scores. So risk storming and assessments should be repeated regularly, for instance before each major milestone or big sale, not filed away after one pass.
Table 1 · What each of the four tools is for
| Tool | Good for | Cost |
|---|---|---|
| Risk matrix | Scoring a single worry in minutes | Subjective; equal products don't mean equal risks |
| Risk assessment | Showing management the full picture and tracking trends | Needs ongoing upkeep; totals let a pile of small scores outweigh one 9 |
| Risk storming | Finding blind spots one person can't see; aligning the team | Four or five people for half a day each; needs a trustworthy diagram |
| Story risk analysis | Delivery risk within an iteration | Covers delivery only, not runtime risk |
Table 2 · Who identifies the risks
| Approach | Benefit | Cost |
|---|---|---|
| Architect alone | Fastest, consistent yardstick | Single viewpoint; implementation-level risks slip through |
| Discuss and score in a meeting | Done in one go | Groupthink: scores drift toward the first or most senior speaker |
| Alone first, then reconcile (the book's way) | Keeps independent judgment; disagreements surface hidden facts | An extra round of preparation and time |
Table 3 · How to price mitigation
| Approach | Effect | Cost |
|---|---|---|
| Full mitigation (e.g. a highly available database cluster) | Takes a 9 down to around a 2 | Most expensive; often rejected by the business |
| Compromise (e.g. split the database by domain to shrink the blast radius) | One level down, say 6 to 3 | Residual risk must be written down and acknowledged by the business |
| Don't mitigate yet; record and keep measuring (common industry practice) | Zero rework | The risk remains; needs monitoring and a trigger condition |
Multiplying scores has one blind spot you must know: impact 3 × likelihood 1 and impact 1 × likelihood 3 both score 3, yet the first is "rare but fatal" and the second "common but minor". For risks with irreversible consequences, such as data loss or a full outage, the product systematically underweights the tail. A common practical rule: list every impact-3 item separately, however unlikely.
The tools in this chapter cost almost nothing to start (a diagram, a stack of sticky notes, a 3×3 grid), yet they answer the most common follow-up in interviews and reviews: "What's the biggest risk in your design, and how would you mitigate it?" Answering in the chapter's structure (give the score, impact and likelihood, then the mitigation and its cost, then how you'll keep measuring) beats "I think the database might be a bottleneck" by a mile.
To start with your own team: two weeks before a big sale or major release, pick one dimension (most teams start with availability), send the diagram to four or five core developers and book half a day; afterwards publish an assessment showing only the high-risk cells, each with a mitigation, a cost and an owner, and re-run it at the next milestone, using arrows to show the trend.
① Every architecture has risk; the goal of analysis is to make it comparable, locatable and trackable.
② Risk matrix: impact × likelihood, each 1–3; 1–2 low, 3–4 medium, 6–9 high; rate impact first, then likelihood.
③ Unproven technology automatically scores 9: if you don't know how it fails, you can't score it.
④ Risk assessment: rows are characteristics, columns are domains; row and column totals pinpoint the weakest characteristic and the riskiest domain.
⑤ Reports for management keep only high-risk cells; arrows show trends, ideally derived from fitness functions.
⑥ Risk storming in three steps: identification (alone) → consensus (disagreement is information) → mitigation (negotiate with costs); one dimension per session.
⑦ The same matrix applies to delivery risk in user stories; risk drifts, so repeat at every milestone.
⑧ Multiplied scores underweight "rare but fatal"; list irreversible high-impact items separately.