Book Deep Read · Fundamentals of Software Architecture · Chapter 18

Choosing the Appropriate Architecture Style: No Best Style, Only the Least-Worst Mix

Fundamentals of Software Architecture · Ch 18 · Mark Richards & Neal Ford · 2020

中文 →

What is this chapter about?

The previous chapters were a tour of a car show: sedans, off-roaders, trucks, sports cars, each good at something. This chapter answers the last question: which one do I actually buy? In software terms: for a new system, say the online ordering app of a sandwich chain, or a live auction website, what overall "shape" should it take?

A strange thing first: the fashionable model changes every few years

Fifteen years ago the advice was "the whole company shares one set of parts." Then it was "split everything into a hundred small services." Now some people say "one big block is actually fine." Nobody was stupid. The roads changed: tools got cheaper, businesses changed, and each generation's scars taught the next one something. So the book says: don't chase the fashionable model, look at your own road.

Why choosing is hard

Every shape is a trade. The cheap one can't go fast; the one that survives huge crowds is expensive and complicated. None wins at everything. And the choice isn't only technical: it also depends on whether the team can drive it, what the budget is, and where the data already lives.

How the choice gets made

The book's method is like checking the road before picking the car, asking three questions in order.

First: is the whole system one kind of road? For the sandwich shop, everything from ordering to pickup has roughly the same needs, so one car is enough: build it as a single block. The auction site is different. The part where thousands of people watch and bid must be able to grow in seconds; the part where the auctioneer drops the hammer must never get it wrong. That's two kinds of road, so you split into several cars, each suited to its own.

Second: who keeps which ledger? A single block usually shares one ledger; once you split, you decide which ledger belongs to whom.

Third: how do the cars talk to each other? Call when you can, it's simple and direct. Leave a message only when the other side is swamped or doesn't need to answer right away.

What you get, and how to choose

The win: your choice has reasons you can explain to your boss and teammates, and write down for whoever comes next. The cost: this method doesn't produce one correct answer. Two careful architects can read the same requirements and pick different designs, both defensible.

One line to remember

Choosing an architecture = check the road, then pick the car: one kind of road, one car; several kinds, several cars; then decide who owns which ledger and how they talk. There's no best car, only the one that fits this road.

Want the seven forces behind architecture "fashion," the book's six kinds of decision criteria, the three-step decision path, and the full sandwich-shop and auction case studies? → Switch to Deep