Book Deep Read · Fundamentals of Software Architecture · Chapter 8
Fundamentals of Software Architecture · Ch 8 · Mark Richards & Neal Ford · 2020
When you buy a shirt online, the software behind the shop handles products, the cart, payment and shipping. Once software gets big, it has to be split into a few large chunks, each owned by a group of people. This chapter asks: how should those chunks be divided? It sounds minor, but it is one of the earliest decisions an architect makes, and one of the hardest to undo.
One way is by skill: everyone who chops in one team, everyone who cooks in another, everyone who plates in a third. Another way is by cuisine: one team does Sichuan dishes from chopping to plating, another does Cantonese. Split by skill, each team is very specialized, but when a new dish is added, all three teams must change how they work and wait on each other. Split by cuisine, one team owns a dish end to end and can change it quickly; the cost is that every team needs people who can chop and cook.
Developers know the skill split best: one layer for screens, one for business rules, one for the database. It feels natural, but when the business changes — say the checkout process — all three layers must change and three groups must meet to schedule it. Another common trap is splitting by nouns: there is a "customer", so build a customer module; there is an "order", so build an order module. Each module only stores and fetches its own data, and the real business process belongs to no one, scattered everywhere.
The book's method is like measuring a room again and again before renovating. First cut a rough set of chunks. Then drop each requirement into one and see which chunk has no room and which is too crowded. Ask each chunk "what exactly are you responsible for?" Then look at the pressure each must bear — on an auction site, tens of thousands of viewers may rush in to bid, while the single auctioneer on stage must never drop out, so the two should not share a chunk. Then cut again, round after round; nobody gets it right the first time. Where to look for chunks matters too: don't start from nouns, start from "who does what", or from "what happens".
Split by business, and the shape of the software matches the shape of the business, which also makes it easier to break off independent systems later. Split by skill, and it suits simple systems that really are just "form, rules, storage". Chunk size is a trade-off too: too small, and chunks spend all day passing messages; too large, and one chunk holds unrelated things, so one change ripples everywhere. The honest cost: once you split by business, shared utilities that "everyone needs" end up written in several places.
To split software, first choose "cut by business" or "cut by skill", then find chunks from "who does what", and refine in rounds — chunks are revised into shape, not drawn right once.
Want the full technical-vs-domain partitioning comparison, Conway's Law, why the Entity Trap is an anti-pattern, and how the auction system's components were found? → Switch to Deep
You think an architect decomposes a system by drawing a service diagram; actually the first cut is an earlier decision: partition the top level by technical capability or by business domain. Chapter 8 of FoSA makes the component the architect's basic unit of work, lays out the trade-offs between these two top-level partitionings, gives an iterative component-identification workflow, and names the most common anti-pattern, the Entity Trap. Components are refined over and over, not derived once.
The last chapter of Part I, "Foundations". After four chapters on characteristics (defining, identifying, measuring, scoping), this chapter turns to the other half of architecture — structure: which components the system is made of. Chapter 9 then lays the foundation shared by all architecture styles, and every style in Part II is essentially a different way of organizing components. Real-world counterpart: how to lay out a new project's code, how to divide teams, how to later break a monolith into services.
The first seven chapters told the architect what the system needs (characteristics), but not what it is made of. The book draws a clear line: architects work at the component level; developers subdivide components into classes and functions. If the architect does not define components, structure grows on its own, feature by feature — usually into the Big Ball of Mud described in Chapter 9.
What goes wrong if you skip it? Two typical failures. First, the wrong cut: in a technically layered e-commerce system, the checkout workflow spans presentation, business and persistence layers, so one change touches three layers and often three teams, and that coordination cost grows with the system. Second, the wrong granularity: too fine, and components call each other constantly and every change needs cross-component coordination; too coarse, and one component holds unrelated responsibilities that drag down testing and deployment. This chapter answers: how to cut the top level, where to find components, and how big is right.
A component is the physical manifestation of a module. The simplest is a library, running in the caller's process and communicating by function call, mostly a matter of compile-time dependencies. Above that is a layer or subsystem, bundling related code into a larger unit. Above that is a service, running in its own process and talking over the network — an independent deployment unit. What they share: each wraps a group of related code, exposes capabilities, and hides internals. In the book's division of labor, components are what the architect defines, refines, manages and governs; classes and functions belong to developers. The line is not bureaucracy but separation of concerns — an architect buried in class design leaves no one watching the overall structure.
The book calls this one of the first decisions an architect makes. Technical partitioning groups components by technical capability — presentation, business rules, persistence — the classic example being the layered architecture. Domain partitioning cuts by business workflow or domain, such as catalog, checkout and shipping, each piece containing all the layers it needs to do its job; it maps to modular monoliths and microservices.
The trade-offs the book lists: technical partitioning clearly separates customization code and aligns naturally with the layered pattern, but brings higher global coupling (changing one workflow touches every layer), and developers tend to duplicate domain logic in the database and presentation layers. Domain partitioning models more closely how the business works, its message flow matches the problem domain, and it eases later migration of components and data to a distributed architecture; the cost is that shared customization code shows up in multiple places.
The book ties this choice to Conway's Law: in 1968 Melvin Conway observed that organizations which design systems produce designs that copy their own communication structures. Layered partitioning often mirrors teams split by skill (front-end team, back-end team, DBA team); domain partitioning makes it easier to apply the Inverse Conway Maneuver — build cross-functional teams shaped like the architecture you want, so the organization shapes the system in your favor.
The book's workflow has five steps, and the end feeds back into the middle:
Why must it iterate? Requirements change, understanding deepens, and the architect never has complete information at the start. The book stresses that granularity has no formula; it is calibrated through this loop. Too fine, and components talk too much; too coarse, and internal coupling is high, making independent testing and deployment hard.
The Entity Trap is the anti-pattern the book calls out: spot "customer", "order", "product" in the requirements and create a CustomerManager, an OrderManager and so on, each doing nothing but CRUD on its entity. The book's verdict is sharp: this is not an architecture, it is an object-relational mapping (ORM, a tool that maps database tables to objects). The real business workflows — placing an order checks stock, prices, charges and notifies — have no home in this structure and end up scattered across Managers. If a system genuinely is simple CRUD, the book suggests using an off-the-shelf framework to generate the screens rather than designing an architecture for it.
The right starting point is behavior, not data. The book lists three approaches:
The book uses Going, Going, Gone, the online-auction kata from Chapter 5, to demonstrate actor/actions. Three actors: the bidder (views the live video stream, views the bid stream, places a bid), the auctioneer (enters live bids, receives online bids, marks an item as sold), and the system (starts the auction, makes payment, tracks bidder activity). From these come initial components such as video streamer, bid streamer, bid capture, bid tracker, auction session and payment.
The key step is characteristics analysis: within the single bid-capture component, online bidders may number in the thousands and need elasticity, while there is one auctioneer whose need is very high reliability and availability — the characteristics differ too much. So it is split into a bidder-capture and an auctioneer-capture component. This is the payoff of step 4: component boundaries are set not only by the business but also by characteristics. The book then groups the components into architecture quanta and concludes the system needs a distributed architecture — linking back to Chapter 7's rule of one set of characteristics per quantum.
Table 1 · Choosing a top-level partitioning (book's pros and cons + fit, compiled for this page)
| Dimension | Technical | Domain |
|---|---|---|
| Organized by | Presentation / business / persistence layers | Workflow or business domain |
| One business change | Spans layers and teams | Usually stays in one component |
| Main benefit | Clean separation of customization code; matches layered pattern; skill-based grouping is intuitive | Close to the business; enables Inverse Conway teams; easy to move to distributed |
| Main cost | High global coupling; domain logic duplicated across layers | Shared / customization code appears in many places |
| Fits | Small, form-and-CRUD systems whose changes are mostly technical | Many workflows, several teams in parallel, possible future split into services |
| Styles | Layered, pipeline (Ch 10, 11) | Modular monolith, microservices (Ch 17) |
Table 2 · Where to find components
| Approach | Starts from | Fits | Cost / pitfall |
|---|---|---|---|
| Entity Trap (anti-pattern) | Nouns / tables | Almost nothing — use a framework for pure CRUD | Workflows have no home; Managers call each other freely |
| Actor/Actions | Who does what | Monoliths, use-case-driven projects | Easy to miss things that happen inside the system |
| Event Storming | Business events | Microservices, message-driven systems | Needs domain experts in the room; leans toward async structure |
| Workflow | Roles + processes | Teams not going message-driven | Drawn too fine, it degrades into a flowchart |
Table 3 · The two ends of granularity
| Case | Symptoms | Cost |
|---|---|---|
| Too fine | One user request chains a dozen components; one feature touches several | Heavy communication and coordination; as services, cross-service transactions |
| Too coarse | Names contain "and" or "Manager"; several teams edit one component | High internal coupling; test, deploy and scale only as a whole |
A practical rule: choose the partitioning, then find components, then calibrate granularity with characteristics. Reverse the order — declaring "we'll have 20 services" up front — and granularity becomes a goal instead of an outcome.
All three say the same thing: the top-level partitioning chooses not just a code layout, but team boundaries and future split paths. Shopify fits this chapter especially well: domain partitioning need not mean microservices — it is first a way of organizing a monolith, and once component boundaries are clear, whether and what to split later becomes an option.
In an architecture review, ask three questions: how many components and teams does a typical business change touch? Are component names nouns (Entity Trap suspect) or actions and workflows? Does any component contain parts with very different characteristics? In an interview, when asked "how would you decompose this system?", answer "I first choose domain or technical partitioning, find components with actor/actions or event storming, then calibrate granularity with characteristics over a few iterations" — that is this chapter's answer skeleton.
① A component is a module's physical form (library, layer / subsystem, service) and the architect's basic unit; classes and functions belong to developers.
② The first top-level cut: technical partitioning (by layer) or domain partitioning (by business).
③ Technical: clean separation of customization code, but one business change crosses every layer — high global coupling.
④ Domain: close to the business, enables Inverse Conway teams, easy to move to distributed; cost is shared code in several places.
⑤ Conway's Law: system structure copies communication structure; choosing partitions is also choosing teams.
⑥ Identification is a loop: initial components → assign requirements → roles and responsibilities → characteristics → restructure, then back to assigning requirements.
⑦ Entity Trap: noun-based CRUD components are not an architecture; workflows have nowhere to live.
⑧ Find components from behavior: actor/actions, event storming, workflow.
⑨ Auction case: differing characteristics split bid capture into bidder and auctioneer parts — granularity calibrated by characteristics.
⑩ Interview line: "Pick the partitioning, find components, calibrate granularity with characteristics, iterate."