Book Deep Read · Fundamentals of Software Architecture · Chapter 7
Fundamentals of Software Architecture · Ch 7 · Mark Richards & Neal Ford · 2020
The previous chapters taught you to pick the few qualities a system must have: handle crowds, stay up, be easy to change. This chapter asks: do you set one list of qualities for the whole system, or a different list for each part? Think of an auction website. The part where viewers watch the live stream and place bids can see tens of thousands of people rush in at once; the part that settles payments with sellers handles a few hundred a day. Holding both to the same standard is either wasteful or not enough.
In a hospital, the emergency room must be staffed around the clock and see patients within minutes. The check-up clinic can close on weekends. The pharmacy's top priority is never handing out the wrong pill. Nobody would require every department to run like the ER — far too expensive. But if the ER has to stand and wait for the lab's results during surgery, the lab must be just as on-call as the ER, because the ER is stuck until it answers. This chapter is about figuring out which parts of a system count as the same department and must meet the same standard.
People used to assume a system was one big block: shipped together, sharing one database, so its qualities could only be set once. Once systems were split into many small services, that changed, but there was no ready-made ruler for where the lines go. Looking at which piece of code calls which is too fine. Counting how many programs get shipped is too coarse — two programs that share one database are still tied together.
The book offers a ruler called the "architecture quantum": the smallest whole chunk that can be shipped on its own and do its job on its own. To tell whether two pieces are the same quantum, ask three things. First, can they ship separately — counting the database each one can't live without, so sharing a database makes them one chunk. Second, are they doing the same job — say, everything about customer details. Third, does one have to wait on the spot for the other's answer? Like a phone call: if the other side doesn't pick up, you just hang there, so both sides need matching stamina. Switch to leaving a voicemail, and the other side can reply later without holding you up — the two come apart.
With this ruler you can set qualities chunk by chunk: the bidding part is built to "never stall under a crowd," the payment part to "never lose a cent." If the whole system measures out as one chunk with one set of needs, building it as one block is simplest; only when the parts need very different things is splitting worth it. The honest cost: to let chunks follow different standards, you must replace "wait on the spot" with "leave a message," and the system gets harder to trace and harder to keep perfectly in sync at every moment.
Qualities aren't set for "the whole system" but for each chunk that ships on its own and waits on itself — draw the chunks right first, and the qualities follow.
Want the precise three-part definition of a quantum, why synchronous connascence welds two services together, and how the auction system splits into three quanta? → Switch to Deep
You think architecture characteristics are properties of "the system." In fact their scope is the architecture quantum: an independently deployable unit with high functional cohesion whose parts are bound together by synchronous calls. FoSA Chapter 7 uses this ruler to answer "where does this set of characteristics apply?" and, along the way, gives the first test for monolith versus distributed — one set of characteristics means one quantum; only several clearly different sets call for several quanta.
Part I, "Foundations," Chapter 7 — the last of the four chapters on characteristics: Chapter 4 defines them, Chapter 5 identifies them, Chapter 6 measures and governs them, and this one sets their scope. It also bridges to Part II: from Chapter 9 the book covers architecture styles, and Chapter 18, on choosing a style, uses the number of quanta directly as the monolith-versus-distributed test. In practice: should this service be split, which services can scale independently, which calls should move onto a message queue.
In the monolith era, characteristics were naturally system-wide: one package, one database; it all got faster together or scaled together. In a distributed world, the needs of different parts of one system can differ by orders of magnitude. Take the book's auction system Going, Going, Gone (the architecture kata from Chapter 5): nationwide online auctions, participants numbering in the thousands or effectively unbounded, bids as close to real time as possible. When an auction opens, traffic on the live-stream-and-bidding side may jump a hundredfold in an instant, while the auctioneer side is a single person on stage who must never drop off.
Without a fix? Either you apply the highest bar everywhere — to give bidding its elasticity, the whole system is built to scale out on demand with full redundancy, and cost and complexity explode together — or you apply the average bar everywhere, and bidding collapses at peak. The sneakier third failure: the architect believes the system is already split and assigns two services different characteristics, but they call each other synchronously or share a database, so they are still welded together — two sets on paper, one set at runtime. The code-level coupling metrics from Chapter 3 (afferent and efferent coupling and the like) are too fine-grained to see this kind of binding. This chapter supplies an architecture-level unit for drawing the line.
The book first revisits connascence from Chapter 3: two components are connascent if changing one requires changing the other to keep the system correct. It comes in two kinds. Static connascence is visible in source code — sharing a type, agreeing on parameter order. Dynamic connascence appears only at runtime — order of calls, timing, values that must agree. The key insight here: the most dangerous bindings at the architecture level are often not in the code but at runtime. Two services can have completely separate code, yet if one calls the other synchronously, their fates are joined while running. On top of that, business concepts themselves bind parts of a system together semantically, creating functional cohesion. Code-level metrics see neither kind of binding.
The book's definition: an architecture quantum is an independently deployable artifact with high functional cohesion and synchronous connascence. Taking each part in turn:
Independently deployable: a quantum contains everything it needs to run on its own, the database included. So a monolith with one database has a quantum count of 1; microservices that each own a database may form several quanta. Conversely, services deployed separately but sharing one database can't live without that database, so they remain one quantum — which is exactly why many "microservice migrations" end up as a distributed monolith.
High functional cohesion: everything inside a quantum serves one business purpose. The book aligns this with the bounded context of domain-driven design (DDD): each context carries its own code and data, its concepts are internally consistent, and duplication across contexts is preferred to sharing. "One service per bounded context" in microservices is drawing quanta by functional cohesion.
Synchronous connascence: synchronous calls exist inside the quantum, or among the services that make it up. The book's argument is direct: if service A calls service B synchronously, the two can't differ wildly in operational characteristics (scalability, performance, availability and so on) — if the caller is far more scalable than the callee, timeouts and reliability problems follow. A synchronous call creates dynamic connascence for its duration: while one waits on the other, their operational characteristics must match.
The third clause hands the architect a practical lever: communication style sets the quantum boundary. If two services talk by synchronous request–response, they are one quantum for the duration of the call and their operational characteristics must line up. Put a message queue between them and the sender returns as soon as the message is dropped off; a slow receiver just makes the queue longer instead of making the sender time out — asynchronous communication cuts one quantum into two, each free to have its own scalability and availability targets.
What this insight does is promote "sync or async" from an implementation detail to an architecture decision: choosing sync declares that two services share one set of scalability and availability targets; only async actually buys the freedom to govern them separately.
The book returns to Going, Going, Gone. Examining it part by part, the architect finds that different parts need clearly different characteristics and draws three quanta: Bidder feedback (the bid stream and video stream; availability, scalability, performance), Auctioneer (the live auctioneer; availability, reliability, scalability, elasticity, performance, security), and Bidder (online bidders and bidding; reliability, availability, scalability, elasticity).
The value is not the three boxes themselves but that each set of characteristics constrains only its own box: the auctioneer side's strict demands on security and reliability needn't spread to bidder feedback, and bidder feedback's performance demands needn't drag the auctioneer side along. Here the book only draws quanta and does not yet pick a style; turning quanta into an architecture is left for later chapters.
The chapter's most practical corollary: if the whole system needs only one set of architecture characteristics, a monolith is usually enough; if parts need clearly different characteristics, you need several quanta, which pushes toward a distributed architecture. In other words, distributed is not "more advanced" — it is the price paid so that different parts can have different characteristics. This plants the key question of Chapter 18 early.
Table 1 · What binds two parts into the same quantum
| Binding | Same quantum? | Upside | Cost / pitfall |
|---|---|---|---|
| Same deployment package | Yes | Cheap calls, simple transactions, easy debugging | Scales and ships only as a whole |
| Shared database | Yes (even with separate deploys) | Consistency handled by the DB, fast to build | Distributed monolith: you pay for the split but get no independence |
| Synchronous call (REST/RPC) | Yes, during the call | Immediate result, straightforward logic | The slow side sets the cap; timeouts, cascading failure |
| Asynchronous messaging | No | Independent scaling and availability targets | Eventual consistency, harder debugging and tracing, duplicates and reordering |
Table 2 · One quantum or several (compiled for this page)
| Situation | Suggestion | Why | Cost |
|---|---|---|---|
| Parts have roughly the same needs | Monolith / single quantum | Don't pay for independence you won't use | Refactor later if one part's needs diverge |
| A few parts stand out (e.g. bid peaks) | Cut them into their own quantum, separated by async | Pay distributed costs only for the parts that differ | Guard the boundary — one sync call welds it back |
| Many parts with different needs | Many quanta / distributed style | Govern each chunk as it needs | Operations, data consistency, unreliable networks (Ch. 9) |
The core judgment is first ask whether the characteristics diverge, then ask whether to split — not the other way round. After splitting, check that the quantum boundaries are real: shared libraries, synchronous call chains and tables shared across services all quietly weld several quanta back into one.
Both cautionary tales point to one conclusion: the reason to split should be "different characteristics," not "services should be small." In an architecture review, after drawing the service diagram, draw a quantum diagram on top: connect shared libraries, sync calls and shared tables, and see how many truly independent boxes remain. In an interview, when asked "why split (or not split) this service," answering "does its scalability and availability target differ from its neighbors'? If so, I cut it into its own quantum with async messaging; otherwise I merge it" is exactly this chapter's skill.
① The scope of architecture characteristics is not the whole system but the architecture quantum.
② Quantum = independently deployable + high functional cohesion + synchronous connascence.
③ The database counts: a monolith plus one database is 1 quantum; services sharing a database are still 1 quantum.
④ During a synchronous call, both sides' operational characteristics must match; the slow side sets the cap.
⑤ Async messaging splits one quantum into two, buying independent scaling at the cost of eventual consistency and harder debugging.
⑥ Code-level coupling metrics are too fine to see runtime and business-semantic bindings.
⑦ Auction case: bidder feedback, auctioneer and bidder are three quanta, each with its own characteristics.
⑧ One set of characteristics → a monolith is usually enough; several different sets → that's when you need distributed.
⑨ Interview line: "First see whether characteristics diverge, then decide whether to split; once split, hold the boundary with async."