BLUEPRINTa field guide to systems
Progress0/66
A field guide to systems · 7 parts

How humans build systems.

From a notched bone 43,000 years old to a payment network moving billions of transactions a month: what a system is, how people built them across ten eras, the seven families they fall into, and how to design one yourself, including computer systems.

7parts
66topics
12working labs
126concepts
How it is organised

Parts → Topics → Concepts

The Atlas on the left is the whole course as a tree. Open a part to see its topics in order; every topic page has the same sections, so you always know where you are.

7

Parts

The big categories, in a deliberate order: foundations, history, families, design, computers, cases, studio.

66

Topics

One idea per page, numbered like 1.3. Each has an idea, a diagram, an example, an around-the-world note, things to try and things to watch out for.

126

Concepts

The single terms inside topics: stock, place value, bottleneck, CAP. All in the glossary (7.4).

Direction

Choose your path

Read in order, or follow one of three routes. Highlighting a path marks its topics in the Atlas.

The long story

Ten eras of human systems

Part 2 walks through them in order. Each era solved a problem the previous one created.

Contents

Everything in the course

1
How any system works

Foundations

Before history or software, learn the grammar every system shares: parts, links, purpose, boundaries, stocks, flows, feedback and leverage. These eight topics are the lens for everything after them.

2
40,000 years of systems

The human story

Ten eras, in order. Each one solved a problem the previous era created, and each still runs underneath what we use today. Every era page follows the same frame: the problem, the systems people built, the people and dates, the India thread, and the lesson for designers.

3
Categories and sub-categories

Families of systems

Every system belongs to at least one family. The family tells you which forces drive it (physics, meaning, incentives, engineering, roles, data, consistency) and so which design tools will work. Seven families, each split into sub-categories, then how they stack.

4
Principles, laws, methods

Designing any system

The same principles hold for a kitchen, a company, a city's water supply or a software platform. This part moves from principles (what good systems share) to laws (what keeps happening) to methods (how to actually design) to failure (how it goes wrong) and ends with a 10-step method you can use tomorrow.

5
Information systems in depth

Computer system design

Software follows every principle of Part 4, with its own building blocks and trade-offs. The order here is the order you design in: numbers first, then blocks, data, scale, communication, consistency, performance, reliability and security, then two complete worked designs.

6
Real systems, read through the course

Case studies

Nine real systems, ancient and modern, each read with the same seven questions: purpose, stocks and flows, loops, standards and interfaces, bottlenecks and failures, what changed at scale, and the lesson to reuse.

7
Tools to use on real work

Studio

Everything in this part is for doing: a design canvas that saves in your browser, a template for writing your own case studies, a four-week study plan with three reading paths, a glossary of every concept, and the sources behind every claim.

TOPIC 1.1 · HOW ANY SYSTEM WORKS

What a system is

A system is a set of parts, connected, that together produce behaviour none of them produces alone.

Animated sceneDiagram4 min read
On the job

Inês Carvalho, 32, has just become head of operations at FreshCrate, a grocery-delivery company in Lisbon that grew from 200 to 4,000 orders a day in a year. Everything is breaking at once: late vans, angry customers, exhausted pickers. Her mentor, Rafael Sousa, spent 35 years designing railway signalling. On their first call, he asked her not to fix anything for a week. "First, draw the system," he said. "Parts, links, purpose. Then we'll talk."

Idea

Donella Meadows, whose Thinking in Systems (2008) is the standard primer, defines a system as elements, interconnections and a purpose.

  • Elements are the parts you can see and count: people, machines, money, buildings.
  • Interconnections are the relationships that hold the parts together: physical flows (goods, water, cash) and information flows (orders, prices, rules, signals).
  • Purpose (or function) is what the system actually does over time.

A heap of sand is not a system: remove half and it is still a heap. A football team is: swap the players and it is still the same team, but change the rules and it becomes a different game.

ElementsInterconnectionsPurpose
Fig. 1.1aEasiest to see → hardest to see, least important → most important
Example

A school. Elements: students, teachers, classrooms, books. Interconnections: the timetable, homework, marks, admission rules, parent meetings. Purpose: if you watch what everyone optimises, it is often "pass the board exam", whatever the prospectus says.

Elements

Start with the parts you can see.

A roadside chai stall: a kettle, milk, tea leaves, cups, a cash box, a seller and customers. Elements are the easiest part of a system to notice, and the least important for understanding it. Swap the kettle for a new one and the stall is still the same stall.

Interconnections

Then look at what flows between them.

Orders flow from customer to seller, tea flows back, money flows into the cash box, and information flows all the time ("two more cutting!"). Interconnections are the relationships that hold the parts together: physical flows and information flows.

Purpose

Purpose is what the system actually does.

Donella Meadows: you learn a system's purpose by watching its behaviour, not by reading its signboard. This stall's behaviour says: hot, quick, cheap tea and a living for the seller. Change the purpose (say, to "premium café") and everything else changes with it. Purpose is usually the strongest of the three.

Boundary

Draw a line: inside, outside, crossing.

Inside: what the stall controls. Outside, in its environment: the milk supplier, the weather, municipal rules, the stall across the road. Arrows crossing the line are inputs and outputs. Almost every real system is open: it depends on flows across its boundary.

Feedback

The stall corrects itself.

A long queue makes the seller brew a bigger batch: a balancing loop that pulls the system back toward a goal. Good tea brings regulars, regulars bring their friends: a reinforcing loop that feeds on itself. Feedback is what turns a pile of parts into a system that behaves.

Emergence

The whole does what no part does.

No cup or kettle is "a meeting place". But at 5 pm the stall becomes one: a reputation and a habit that emerge from the parts and their connections. Emergent properties can't be found by taking the system apart; you have to watch it run.

Hierarchy

Systems sit inside systems.

The stall is inside a market, inside a city, inside an economy. Each level handles its own job and passes up only what the level above needs. Hierarchy is how nature and people manage complexity: from cells to organs to bodies, from desks to teams to companies.

Around the world

An instant-payment network is a system most people use daily. Elements: phones, apps, banks and a central switch. Interconnections: payment requests, debits and credits, settlement between banks, and the network's rulebook. Purpose, read from behaviour: move money instantly between any two accounts. India's UPI (2016), Brazil's Pix (2020) and the UK's Faster Payments (2008) all share this structure, though their owners and rules differ.

Try it

Pick a system near you (your office, a bus route, a family WhatsApp group). In two minutes: list ten elements, draw the three most important flows, then write its purpose in one sentence based only on what it does.

Watch out
  • Listing parts is not understanding a system. Most of the behaviour lives in the connections.
  • A stated purpose is a claim; the real purpose is what the system keeps producing.
Remember
  • Elements matter least, interconnections more, purpose most (Meadows).
  • Change the rules or information flows and behaviour changes even with the same people.
  • Judge purpose by behaviour, not by the signboard.

Concepts on this page

ElementInterconnectionPurpose
TOPIC 1.2 · HOW ANY SYSTEM WORKS

Boundaries and environments

Every system analysis starts with a line: what is inside, what is outside, and what crosses.

DiagramLab2 min read
On the job

Inês's first map of FreshCrate stopped at the warehouse door. Late deliveries looked like a driver problem. Rafael asked her to redraw it including the suppliers, the city's traffic and the customers' order times. The real cause appeared: a supplier's truck that arrived at 9:40 every morning, forty minutes after picking had to start.

Idea

A boundary separates the system you are studying from its environment. Inside are the parts you can influence directly; outside are forces that affect you but that you don't control. Arrows that cross the boundary are inputs and outputs.

  • Open systems exchange matter, energy or information with their environment. Almost everything real is open: a company, a city, your body.
  • Closed systems exchange nothing. They are mostly a thought experiment.

The boundary is a choice, not a fact. Draw it too tight and the cause of your problem sits outside it. Draw it too wide and you can't act on anything.

InputsSystemOutputs
Fig. 1.2aWhat crosses the line is where most surprises come from
Example

A restaurant kitchen. Inside: cooks, stations, recipes, the walk-in fridge. Outside: suppliers, the weather, health inspectors, a food-delivery app's algorithm. Inputs: ingredients, orders, power. Outputs: plates, waste, reviews. When the delivery app changes its ranking, the kitchen's Friday changes, even though nothing inside moved.

Around the world

A city's water supply. If you draw the boundary at the municipal pipes, the problem looks like leakage. Widen it to include groundwater, wells, lakes and rainfall, and the real problem, falling water tables or filled-in lakes, comes into view. Cities from Chennai to Cape Town, which came close to "Day Zero" in 2018, have learned this the hard way.

Try it

Draw your system as a circle. Put five things outside it that affect it. For each, write one input arrow and one output arrow. Ask: which of these outside things could I bring inside with a contract, a partnership or a sensor?

Watch out
  • Blaming "external factors" often means the boundary was drawn too small.
  • Every boundary leaves something out. State what you left out.
How it works

Systems trade with their surroundings all the time, and the trades are where surprises come from.

Inputs cross inthe system transforms themoutputs cross outthe environment respondsnew inputs
Fig. 1.2bEvery open system trades with its environment across its boundary.

A useful test: put inside the boundary everything you can influence and that strongly affects the behaviour you care about. Put outside what affects you but you can't change, and watch it as the environment.

In practice

When a problem keeps coming back after every fix, widen the boundary. The cause is often one step outside the box you drew.

Remember
  • Boundaries are choices made for a purpose.
  • Real systems are open: inputs and outputs keep them alive.
  • Widen the boundary until the cause of the problem is inside it, then stop.

Concepts on this page

BoundaryOpen systemInputs and outputs
TOPIC 1.3 · HOW ANY SYSTEM WORKS

Stocks and flows

A stock is what piles up; flows are the rates that fill and drain it. The stock can only change through its flows.

Animated sceneDiagramLab4 min read
On the job

At FreshCrate, Inês counted the boxes waiting to be packed every 15 minutes for a whole morning. The pile grew from 40 to 310 between 8 and 10 a.m., then shrank slowly until noon. "That pile is a stock," Rafael said. "Orders arriving fill it; pickers drain it. You can't shrink it by shouting at the pile. Only by changing a flow."

Idea

A stock is anything that accumulates and can be counted at a moment: water in a tank, money in an account, books in a library, trust in a brand, users of an app, unfinished orders. A flow is a rate of change: litres per minute, rupees per month, users per day.

The bathtub rule:

  • If inflow > outflow, the stock rises.
  • If inflow < outflow, it falls.
  • If they are equal, it holds steady: a dynamic equilibrium, busy but unchanging.

Stocks are a system's memory and its shock absorbers. Because they change only as fast as the flows allow, stocks create inertia: a reservoir doesn't empty in a day, and a reputation isn't rebuilt in a week.

InflowSTOCKOutflow
Fig. 1.3aOnly flows change a stock
Stock

A stock is anything that accumulates.

Water in a tank, money in an account, books in a library, trust in a brand, users of an app. A stock is a memory of everything that has flowed in and out. You can count it at any moment.

Flows

Flows change stocks, and only flows.

Inflow above outflow: the level rises. The bathtub rule: a stock rises if inflow is greater than outflow, falls if it is smaller, and stays put when they match. To change a stock you must change a flow, and that takes time.

Equilibrium

Equal flows hold a stock steady.

A stock can be full of movement and still not change: water pouring in and draining out at the same rate. A city's population, a company's headcount and your weight can all be busy equilibriums.

Balancing loop

A goal and a correction.

Add a float valve: as the level nears the target, the tap closes. The gap between "where we are" and "where we want to be" drives the correction. Thermostats, hunger and inventory reorders work the same way. Balancing loops seek a goal.

Reinforcing loop

The more you have, the more you get.

Interest on savings: the bigger the balance, the bigger the inflow. Reinforcing loops make exponential growth, or collapse when they run backwards (a bank run). Viral apps, compound interest and rumours all ride one.

Delay

Delays make systems overshoot.

A shower with a long pipe: you turn the tap, nothing happens, you turn it more, and then you're scalded. When feedback arrives late, corrections overshoot and the system oscillates. Delays explain boom-and-bust in commodity prices and hiring.

Bathtub simulatorSet the flows, watch the stock
+4net flow (L/min)
60level now (L)
35 minuntil full (200 L)

  1. Set inflow equal to outflow: the level holds, however busy the flows.
  2. Set outflow higher: the tank empties, and the chart tells you when.
  3. Notice that the level can't jump: only flows move a stock, step by step.
Example

A bank account. Stock: the balance. Inflows: salary, interest. Outflows: rent, EMIs, spending. Saving more is the same as either raising an inflow or cutting an outflow; nothing else moves the number.

Around the world

Reservoir management is stock-and-flow thinking at national scale: inflows from rain, snowmelt and rivers; outflows to farms, cities and evaporation; and a stock that must last until the next wet season. South Asia plans around the monsoon, California around winter snowpack, and Egypt around the Nile's flow through Lake Nasser.

Watch out
  • People confuse stocks and flows: "the deficit" is a flow, "the debt" is a stock. Cutting the deficit slows the growth of the debt; it doesn't shrink it.
  • A big flow can hide behind a steady stock. Staff turnover can be huge while headcount stays flat.
Remember
  • Stocks change only through flows, and only as fast as the flows allow.
  • Equal flows mean a steady stock, not an idle one.
  • Stocks buy time: they let inflows and outflows differ for a while.

Concepts on this page

StockFlowBathtub ruleDynamic equilibriumInertia
TOPIC 1.4 · HOW ANY SYSTEM WORKS

Feedback loops

When a stock's level changes its own flows, you have a feedback loop: balancing loops seek a goal, reinforcing loops feed on themselves.

DiagramLab3 min read
On the job

When FreshCrate's delivery times grew, customers ordered earlier in the day to be safe, which crowded the morning even more and made deliveries later still. Inês drew it as a loop on the whiteboard. Rafael smiled. "You found your first reinforcing loop," he said. "Now find the balancing loop that should be stopping it."

Idea

A feedback loop is a closed chain of cause and effect: a stock's level influences a flow, which changes the stock.

Balancing loops (B) pull a stock toward a goal. The bigger the gap between "where we are" and "where we want to be", the stronger the correction. Thermostats, hunger, inventory reorders and a teacher slowing down for a confused class are all balancing loops.

−++Room temperatureGap to targetHeater outputBBALANCING
Fig. 1.4aBalancing loop: the gap drives the correction. + means "moves the same way", − means "moves the opposite way".

Reinforcing loops (R) amplify change. More produces more: interest on savings, word of mouth, a viral app. Run backwards they produce collapse just as fast: a bank run, a rumour of shortage that empties shelves.

+++UsersWord of mouthNew sign-upsRREINFORCING
Fig. 1.4bReinforcing loop: change feeds on itself. + means "moves the same way", − means "moves the opposite way".

Real systems have many loops at once. Which loop dominates decides behaviour, and dominance can shift: growth (R) gives way to saturation (B).

Growth meets a limitReinforcing loop vs carrying capacity

Blue: the reinforcing loop alone (exponential). Orange: the same loop meeting a balancing limit (an S-curve, the "limits to growth" archetype).

Example

A new restaurant. R: good food → more diners → more reviews → more diners. B: more diners → longer waits → some diners leave. Early on R dominates; on busy weekends B takes over.

Around the world

Instant payment networks spread through reinforcing loops: more users made more shops accept QR codes, which made the network useful to more users. M-Pesa in Kenya, UPI in India and Pix in Brazil all grew this way. Inflation expectations can be another: expecting prices to rise, people buy early, which pushes prices up.

Watch out
  • Pushing harder against a balancing loop usually triggers stronger resistance.
  • Reinforcing loops never run forever; something always becomes the limit.
How it works

Every feedback loop is a closed chain of causes. Tracing it means asking, at each link, "if this goes up, does the next thing go up or down?"

++++Late deliveriesCustomers order earlierMorning crowdingEven later deliveriesRREINFORCING
Fig. 1.4cReinforcing loop: change feeds on itself. + means "moves the same way", − means "moves the opposite way".

Count the links that move in opposite directions. An even number, including zero, gives a reinforcing loop; an odd number gives a balancing loop.

Real systems contain many loops at once, and which one dominates can change over time. A product's growth is driven by a reinforcing loop until a balancing loop, such as a saturated market, takes over.

In practice

When something is growing or collapsing fast, look for the reinforcing loop. When something resists every push, look for the balancing loop holding it in place.

Remember
  • B loops seek goals; R loops amplify.
  • Find the loop, then find which one is in charge right now.
  • Growth is always a reinforcing loop meeting a balancing limit sooner or later.

Concepts on this page

Feedback loopBalancing loopReinforcing loopLoop dominance
TOPIC 1.5 · HOW ANY SYSTEM WORKS

Delays and oscillation

When feedback arrives late, corrections overshoot and systems swing.

DiagramLab3 min read
On the job

Inês hired 12 extra pickers when the morning backlog grew. They took three weeks to train. By the time they were fast, the summer rush had ended, and she had too many people. In autumn she cut staff, and the Christmas rush caught her short. "That's the shower problem," Rafael said. "You're reacting to old news."

Idea

Every loop has delays: time to notice, time to decide, time for action to take effect. A balancing loop with a long delay doesn't glide to its goal; it overshoots, corrects too hard the other way, and oscillates.

Act(wait…)See resultOver-correct
Fig. 1.5aThe longer the wait, the bigger the swing

Three ways to calm an oscillating system:

  1. Shorten the delay (faster information).
  2. Correct more gently (smaller adjustments).
  3. Add a buffer (a stock that absorbs the swings).
The shower: feedback with a delaySame goal, same rule, different delay

The rule each second: turn the tap in proportion to the gap you feel now. The water you feel left the boiler "delay" seconds ago.

–hottest moment (°C)
–time to settle within 0.5 °C

Example

The shower with a long pipe: turn the tap, nothing happens, turn it more, and you are scalded. Same with hiring: a company short of staff hires heavily; by the time new hires are trained, demand has slowed, so it freezes hiring, and the cycle repeats.

Around the world

Farm prices are a classic case. When onion or pig prices are high, many farmers plant or breed more; months later the supply floods the market and prices crash, so fewer produce next season. Economists call this the cobweb pattern; it has been studied in US hog markets since the 1930s and still shapes vegetable prices from India to Mexico.

Watch out
  • Reacting to today's number when the system responds next month guarantees overshoot.
  • Making delays shorter is often impossible; making corrections gentler almost always is.
How it works

Delays hide everywhere: in information (reports arrive late), in action (hiring and training take time), and in response (customers change habits slowly).

Gap noticeddecisionaction takes effectresult visiblenext decision
Fig. 1.5bEach step adds delay; the longer the chain, the bigger the swings.

The usual instinct is to react harder when results don't come quickly. That makes swings worse. Better options are to shorten the delay, act more gently, or forecast so you act before the gap appears.

The beer distribution game, developed at MIT in the 1960s, shows this vividly: players in a supply chain, each reacting sensibly to delayed orders, create huge swings in stock.

In practice

Measure the delay before reacting: how long from a decision to seeing its effect? Then change things in small steps and wait that long before judging.

Remember
  • Delay + balancing loop = oscillation.
  • Measure what is already "in the pipe", not just what has arrived.
  • Gentle, frequent corrections beat big, late ones.

Concepts on this page

DelayOscillation
TOPIC 1.6 · HOW ANY SYSTEM WORKS

Behaviour patterns and archetypes

Sketch the shape of behaviour over time first; each shape points to a structure, and a few structures keep recurring.

DiagramFlip cardsLab2 min read
On the job

Inês plotted FreshCrate's weekly complaints for a year. The line rose, fell after a fix, then crept back up to a new high. Rafael recognised the shape. "Fixes that fail," he said. "The quick fix, giving refunds, eased the pain but taught customers that complaining paid. The real problem, late vans, was never solved."

Idea

Before asking "who is to blame?", draw behaviour over time: the key number on the y-axis, months on the x-axis. Five shapes cover most situations:

Shape Usual structure
Exponential growth A dominant reinforcing loop
Goal-seeking A dominant balancing loop
Oscillation A balancing loop with a delay
S-shaped growth A reinforcing loop meeting a limit
Overshoot and collapse Growth that erodes the resource it depends on

Peter Senge's The Fifth Discipline (1990) popularised system archetypes: structures that recur in businesses, governments and families. Knowing them lets you recognise a trap early. Tap each card.

Example

"Fixes that fail": a factory skips maintenance to hit this month's output target. Output rises now; breakdowns rise later; the next target is missed by more.

Around the world

The tragedy of the commons shows up in groundwater pumped for irrigation, from India's Punjab to California's Central Valley; in fishing grounds such as the Grand Banks cod fishery, which collapsed in 1992; and in free city roads that fill with traffic.

Watch out
  • Archetypes are lenses, not proofs. Check the data.
  • Blame-free does not mean responsibility-free: once you see the structure, someone must change it.
How it works

System archetypes are recurring structures that produce recognisable patterns of behaviour.

Fixes that faila quick fix eases a symptom but feeds the problem later
Shifting the burdena symptomatic solution weakens the ability to fix the root cause
Limits to growthgrowth slows as it hits a constraint
Tragedy of the commonseach user gains by taking more of a shared resource until it collapses
Escalationtwo parties each respond to the other by pushing harder
Success to the successfulwinners get more resources, so they keep winning
Fig. 1.6a

Peter Senge popularised these in The Fifth Discipline (1990), building on work at MIT.

Recognising the archetype points to the usual remedy: for limits to growth, work on the limit rather than pushing growth harder; for the commons, create shared rules or feedback on use.

In practice

Sketch the behaviour over time before proposing solutions. The shape often tells you which archetype you're in.

Questions to ask

What shape is the line over time: rising, falling, S-curve, oscillating, or overshoot and collapse? Which archetype does that shape suggest?

Remember
  • Shape first, cause second.
  • The same structure produces the same behaviour, whoever is inside it.
  • Name the archetype, then look for its known fix.

Concepts on this page

Behaviour over timeS-shaped growthSystem archetypesTragedy of the commons
TOPIC 1.7 · HOW ANY SYSTEM WORKS

Emergence, hierarchy and resilience

Wholes have properties their parts don't; complex systems are built in nested layers; good systems bend without breaking.

DiagramLab2 min read
On the job

When FreshCrate's routing software crashed one Friday, the drivers organised themselves on a group chat, swapping orders by neighbourhood. Deliveries were slower but nearly all arrived. Inês was amazed. Rafael wasn't: "Small teams with local knowledge and some slack can absorb a shock that would stop a perfectly optimised machine."

Idea

Emergence: properties of the whole that no part has. One ant isn't a colony; a traffic jam isn't any single car; a city's character isn't any building. You can't find emergent properties by taking the system apart: you have to watch it run.

Hierarchy: systems sit inside systems. Cells → organs → bodies; desks → teams → companies → industries. Each level handles its own job and passes up only what the level above needs. Herbert Simon showed that complex systems that evolve quickly tend to be built from stable sub-assemblies (his "watchmakers" parable, 1962).

Economyrules, markets, money
Cityroads, water, power
Marketrents, footfall, neighbours
Stallkettle, seller, customers
Fig. 1.7a

Resilience: the ability to absorb shocks and keep working. It comes from diversity, redundancy, buffers and many small balancing loops. Meadows warns that we often trade resilience away for efficiency without noticing.

Self-organisation: the ability of a system to change its own structure: learning, evolving, diversifying.

Example

A street market with many small vendors survives one vendor's illness; a supply chain built around one supplier and zero inventory is efficient until that supplier's factory floods.

Around the world

Mumbai's dabbawalas (Case 6.5) work in small, self-managing groups: if one person is out, the group covers. Toyota's teams can stop the line to fix problems locally. Wikipedia's volunteers repair vandalism within minutes. Each shows resilience through redundancy and local autonomy.

Watch out
  • "Lean" without buffers is fragile. Efficiency and resilience pull in opposite directions; choose consciously.
  • Top-down control of every level defeats the point of hierarchy.
How it works

Resilience comes from features that often look like waste in good times.

Redundancyspare capacity, backups, people trained for more than one job
Diversitydifferent suppliers, routes and methods, so one failure doesn't hit all
Modularityparts that can fail without bringing down the whole
Local autonomypeople who can act without waiting for the centre
Feedbackfast information about what is going wrong
Fig. 1.7b

Optimising only for efficiency strips these away: a just-in-time supply chain with one supplier is cheap until that supplier stops. Many companies learned this during the 2020–2021 supply disruptions.

Hierarchy helps too: nested layers, like teams within departments, let local problems be solved locally, while the top focuses on direction.

In practice

For each critical part of your system, ask: what happens if this stops for a day? If the answer is "everything stops", add a backup or a fallback.

Remember
  • Watch the whole run to see emergent behaviour.
  • Good hierarchies let each level handle its own problems.
  • Resilience is paid for in slack: keep some.

Concepts on this page

EmergenceHierarchyResilienceSelf-organisation
TOPIC 1.8 · HOW ANY SYSTEM WORKS

Leverage points

Some places to push a system change almost nothing; a few change everything. Meadows ranked twelve.

DiagramLab2 min read
On the job

Inês's managers wanted a faster conveyor belt. Rafael asked what information the pickers had. None: they didn't know which orders were late until a driver shouted. Inês put a screen above the packing line showing each order's departure time. Without new machines, late orders fell by a third in a month.

Idea

In 1997 Donella Meadows published a list of places to intervene in a system, from weakest (12) to strongest (1). The surprise: most public debate is about the weakest points, the numbers.

  • Weak (12–10): parameters such as taxes and subsidies; buffer sizes; physical stock-and-flow structure.
  • Middle (9–6): delays; strength of balancing loops; gain of reinforcing loops; information flows (who knows what, when).
  • Strong (5–1): rules; the power to self-organise; goals; the paradigm the system arises from; the ability to transcend paradigms.
Leverage points ladderWhere to push a system

Donella Meadows listed 12 places to intervene in a system, first published in 1997. Number 12 is the weakest, number 1 the strongest. Tap a rung.

Example

Meadows tells of a Dutch housing estate where some electricity meters were in the front hall and others in the basement. Households that could see their meter used about a third less power. No price change, no law: just a new information flow (point 6).

Around the world

Changing a fuel tax a little is a weak lever (number 12). Making real-time air-quality readings public on every street is stronger (information flows). Changing a city's goal from "move cars faster" to "move people faster", as Paris, Bogotá and Seoul have in different ways, is among the strongest, because it reshapes every lower decision.

Watch out
  • Strong leverage points meet strong resistance. Paradigms don't move by memo.
  • Meadows herself said the list is tentative. Use it to ask better questions, not as a law.
How it works

Donella Meadows's list runs from weak, easy levers to strong, hard ones.

Numbers and parameterstaxes, speeds, budgets · easy, usually weak
Buffers and stock sizeshow much slack the system holds
Structure of flowswho connects to whom
Delayshow long feedback takes
Feedback loopstheir strength and presence
Information flowswho sees what, when
Rulesincentives, punishments, constraints
Self-organisationthe power to change its own structure
Goalswhat the system is trying to do
Paradigmsthe beliefs out of which the system arises
Fig. 1.8a

The list is a simplified version of her twelve points, published in her 1999 essay "Leverage Points: Places to Intervene in a System".

She also warned that people often push leverage points in the wrong direction, because the system's behaviour is counterintuitive.

In practice

Before spending money on a parameter, ask whether better information or a clearer goal could do more.

Remember
  • Parameters are the weakest lever, though the most argued about.
  • Information flows are cheap and powerful.
  • Goals and paradigms change everything below them.

Concepts on this page

Leverage pointsInformation flowParadigm
TOPIC 1.9 · HOW ANY SYSTEM WORKS

Checkpoint: Foundations

Nine questions on the grammar of systems.

Checkpoint2 min read
TOPIC 2.0 · 40,000 YEARS OF SYSTEMS

The ten eras at a glance

One direction runs through 40,000 years: externalise, abstract, standardise, coordinate, automate.

Animated sceneDiagram3 min read
On the job

Rafael sent Inês a reading list on the history of systems. She protested she had vans to fix. "Every problem you have, someone solved in another form centuries ago," he said. "Queues, records, standards, feedback. The history is a catalogue of patterns you can reuse."

Idea

Scroll the timeline. Each era is a new kind of system, and each still runs underneath modern life: your phone's clock descends from Babylonian base 60, your bank statement from Mesopotamian clay ledgers.

Era 1 · Counting

Memory leaves the head.

The Lebombo bone, found in Border Cave on the South Africa–Eswatini border, carries 29 notches and is about 43,000 years old. The Ishango bone from Congo, about 20,000 years old, has grouped notches that some read as arithmetic or a lunar calendar; scholars still debate what they mean. Either way, the first system move was clear: store a count outside the brain.

Era 2 · Recording

Writing grew out of accounting.

From about 7500 BCE, farmers in the Near East used small clay tokens for goods: one shape for a measure of grain, another for a sheep. Denise Schmandt-Besserat traced how token impressions on clay envelopes led to signs on tablets, and to proto-cuneiform at Uruk around 3200 BCE. The first database was a ledger.

Era 3 · Number

Place value and zero.

Babylonians counted in base 60, which survives in our minutes and degrees. In India, place value with a dot for zero appears in the Bakhshali manuscript, carbon-dated by Oxford's Bodleian Libraries to as early as the 3rd–4th century CE, and Brahmagupta wrote rules for zero as a number in 628 CE. Arithmetic stopped being an expert skill.

Era 4 · Time

Synchronising people.

Calendars timed planting and festivals; clocks timed work. Railways forced a shared time: Britain's railways adopted Greenwich time in 1847, US railroads created standard time zones on 18 November 1883, and an 1884 conference in Washington chose Greenwich as the prime meridian.

Era 5 · Rules

Rules for strangers.

Ur-Nammu's code (around 2100 BCE) and Hammurabi's (around 1754 BCE) made rules public and fixed. Kautilya's Arthashastra described how to run a state's treasury and officials. Constitutions later added checks and balances: systems designed so no single part can dominate.

Era 6 · Knowledge

Organising what we know.

Pāṇini described Sanskrit in about 4,000 compact rules, a formal system often compared to modern grammars. Libraries built catalogues, Linnaeus gave every species a place in a nested hierarchy (1735), and the scientific method built error correction into knowledge itself.

Era 7 · Trade

Trust between strangers.

Coins appear in Lydia and India around the 6th century BCE. Hundi let Indian merchants move value without moving cash. Double-entry bookkeeping, set out by Luca Pacioli in 1494, made every record balance. Each is a way to engineer trust.

Era 8 · Standards

Parts that fit everywhere.

The metric system (France, 1790s) tied units to nature; in 2019 every SI base unit was redefined from fixed constants, such as the kilogram from the Planck constant. Screw threads, shipping containers and paper sizes followed. A standard is a contract that lets strangers' parts work together.

Era 9 · Production

Flow, then lean.

Interchangeable parts, Taylor's time studies (1911), Ford's moving assembly line (1913), then Toyota's production system: make only what the next step needs, and stop the line when something is wrong. Goldratt's The Goal (1984) taught that output is set by the bottleneck.

Era 10 · Information

Everything becomes information.

In 1948 Claude Shannon measured information in bits and Norbert Wiener named cybernetics, the science of feedback and control. Computers, ARPANET (1969), TCP/IP (1983) and the Web followed, then public digital infrastructure such as Aadhaar and UPI.

 

Line the eras up and five moves repeat:

ExternaliseAbstractStandardiseCoordinateAutomate
Fig. 2.0aEach move increased scale and created new failures for the next move to solve
Remember
  • Externalise: memory moves onto bone, clay, paper, disk.
  • Abstract: symbols stand for things you can't see.
  • Standardise: strangers agree on units, times and formats.
  • Coordinate: law, markets, schedules and networks connect many people.
  • Automate with feedback: machines correct themselves.

Concepts on this page

Five system moves
TOPIC 2.1 · 40,000 YEARS OF SYSTEMS

Era 1 · Counting

The first system move: a count stored outside the brain.

DiagramLab2 min read
On the job

Rafael showed Inês a photo of the Lebombo bone, a baboon's fibula with 29 notches, found in a cave on the border of South Africa and Eswatini and dated to more than 40,000 years ago. "Someone needed to remember a count," he said. "So they stored it outside their head. Your warehouse dashboard is the same move."

Problem

Human working memory holds only a handful of items. Herds, days and debts grow past that quickly.

Idea

Notches on bone, wood and stone recorded quantities that memory couldn't. The Lebombo bone, found in Border Cave on the South Africa–Eswatini border, is a baboon fibula with 29 notches, dated by radiocarbon to roughly 43,000 years ago. The Ishango bone (Democratic Republic of Congo, found 1950, about 20,000 years old) has notches in grouped columns. Readings range from a tally, to a lunar calendar, to arithmetic; none is proven.

Tally sticks lasted for millennia. Split down the middle, one half went to the creditor, one to the debtor; matching halves proved the debt. England's Exchequer used split tallies for tax receipts into the 19th century.

Thing happensMake a markCount the marks later
Fig. 2.1aOne mark per thing: reliable, slow, and unreadable past about 20
Around the world

Tally marks grouped in fives are still how shopkeepers, scorers and teachers keep quick counts worldwide. In China and Japan, people often tally with the character 正, which has five strokes; in Latin America, some draw a square and a diagonal.

System lesson

Externalised memory is the root of every information system. And the split tally is the first security system: two copies that must match.

Watch out
  • "The Ishango bone proves Stone Age people knew prime numbers" is a popular claim, not an established finding.
How it works

Counting outside the brain needs just three things: a mark, a rule for what each mark means, and a place to keep the marks.

Something happensa mark is mademarks are groupedthe total is read latera decision
Fig. 2.1bExternalised memory: the first system move.

Tally sticks were used for credit in England until 1826: the stick was notched and split in two, so creditor and debtor each held a matching half. Neither could change the record alone.

Grouping marks in fives, as most of the world still does on whiteboards and scorecards, makes them faster to read: an early example of designing a record for its reader.

In practice

Any count you rely on should live outside someone's memory, with a clear rule for what each mark means.

Try it

Tally something for a day, such as cups of tea or interruptions, in groups of five. Notice how much easier the total is to read than a row of single marks.

Concepts on this page

Tally stickExternalised memory
TOPIC 2.2 · 40,000 YEARS OF SYSTEMS

Era 2 · Recording

Farming created surpluses, debts and taxes; clay tokens and then writing kept the accounts.

DiagramLab2 min read
On the job

Rafael's next story began in Mesopotamia, around 8000 BCE, where small clay tokens stood for goods: a cone for a measure of grain, a cylinder for an animal. "Later, people pressed tokens into clay envelopes and then just drew the shapes," he said. "Writing began as accounting."

Problem

Farming (from about 10,000 years ago) brought stored grain, herds, debts and tribute: too many obligations, between too many people, to remember.

Idea

Archaeologist Denise Schmandt-Besserat traced a sequence across the Near East:

  1. c. 7500 BCESmall clay tokens: a shape per kind of good
  2. c. 3500 BCETokens sealed in clay "envelopes", marked outside
  3. c. 3300 BCEMarks pressed into flat tablets; tokens dropped
  4. c. 3200 BCEProto-cuneiform at Uruk: number signs separate from thing signs
Fig. 2.2a

Her conclusion, widely accepted in outline: writing grew largely out of accounting. The first "database" was a ledger of barley, sheep and oil, and early scribes were essentially clerks.

Around the world

Records took many forms: Mesopotamian clay tablets, Egyptian papyrus, the Indus civilisation's carved seals (c. 2600–1900 BCE) with a still-undeciphered script, Chinese oracle bones, and the Inca's knotted khipu cords.

System lesson

Abstraction and representation. Once a symbol stands for a thing, you can count, transfer and audit things you can't see. Every record system (ledgers, databases, blockchains) is a descendant.

Watch out
  • The token-to-writing theory is influential but debated in its details; writing also arose independently in China and Mesoamerica.
How it works

Records made large-scale cooperation possible: they let strangers agree on who owed what, long after the deal was made.

  1. c. 8000 BCEclay tokens represent goods in the Near East
  2. c. 3500 BCEtokens sealed in clay envelopes, marked on the outside
  3. c. 3200 BCEproto-cuneiform tablets in Uruk record goods and labour
  4. c. 2600 BCEIndus seals mark goods in trade
  5. c. 1200 BCEChinese oracle bones record questions and answers
Fig. 2.2b

Archaeologist Denise Schmandt-Besserat developed the theory linking tokens to the origin of writing. Separating the number sign from the thing sign, so that "5" could apply to sheep or jars, was a leap in abstraction.

The Inca of South America kept accounts without writing, using knotted cords called khipu, showing that records can take many forms.

In practice

A record needs a trusted keeper, a standard format and a way to check it. Those three still define good databases.

Questions to ask

Who keeps your most important records, how are they checked, and what happens if the keeper disappears? Ancient scribes, modern accountants and database administrators all answer the same questions.

Key terms

Token: a small object standing for a quantity of goods. Cuneiform: wedge-shaped writing pressed into clay. Khipu: Inca knotted cords used for accounts.

Concepts on this page

Clay tokensAbstraction
TOPIC 2.3 · 40,000 YEARS OF SYSTEMS

Era 3 · Number

Counting is not calculating. Place value and zero turned arithmetic into a routine anyone can learn.

Animated sceneDiagramLab4 min read
On the job

Inês complained that her spreadsheets were full of errors. Rafael said the spreadsheet was the easy part: "The hard part, a number system where anyone can calculate on paper, took humanity thousands of years. Place value and zero are why a twelve-year-old can do what Roman clerks needed an abacus for."

Problem

Cities needed to calculate: rations, taxes, land areas, interest, calendars. Tally marks and simple symbols made big sums slow and error-prone.

Idea
  • Babylonian base 60 (from about 2000 BCE) used place value, which is why we still have 60 seconds, 60 minutes and 360°.
  • Egyptian decimal hieroglyphs and unit fractions served surveying and taxes.
  • Place value with zero (India): the Bakhshali manuscript uses a dot as a placeholder zero; Oxford's Bodleian Libraries carbon-dated some of its leaves to the 3rd–4th century CE (2017). In 628 CE Brahmagupta wrote rules for zero as a number in its own right. The system reached Europe via al-Khwarizmi (9th century) and Fibonacci's Liber Abaci (1202).
  • Indus weights (c. 2600–1900 BCE): standardised cubic chert weights, with an early analysis finding a doubling series for small weights.
Tally

One mark, one thing.

The simplest counting system: a stroke per sheep. It's reliable but slow, and big numbers are unreadable. Grouping in fives (four strokes and a slash) is the first improvement: the eye reads "5" at a glance instead of counting.

Tokens

A shape stands for a thing.

Near Eastern clay tokens (from about 7500 BCE) used a different shape for each kind of good. Three sheep were three sheep tokens: still one-to-one, but now the record could be moved, stored and checked by someone else.

Envelope

Seal the tokens, mark the outside.

To stop tampering, tokens were sealed inside hollow clay balls, and pressed into the surface first so anyone could see what was inside without breaking it. That was a security feature, and a copy of the data.

Tablet

Then the marks alone were enough.

Once the marks on the outside carried the information, the tokens were unnecessary. Flat tablets with impressed signs, then signs for numbers separate from signs for things: "3" and "sheep" instead of "sheep sheep sheep". Counting became abstract.

Place value

Position carries meaning.

In 2 0 5, the same symbols mean different amounts depending on where they sit: 2 hundreds, 0 tens, 5 ones. Ten symbols can write any number, and adding, carrying and multiplying become mechanical rules a child can learn.

Zero

Nothing, written down.

Without a mark for an empty place, 25 and 205 look alike. Babylonian and Maya scribes used placeholders. In India the placeholder dot became a number with its own rules: Brahmagupta (628 CE) wrote how to add, subtract and multiply with zero. It reached Europe through Arabic scholars and Fibonacci's Liber Abaci (1202).

One number, six systemsSee why the encoding matters
Place value (base 10)
Devanagari digits
Roman numerals
Babylonian base 60
Binary (base 2)
Tally marks

Indus weights: the binary balanceWeigh anything with seven stones

The stones double: 1, 2, 4, 8, 16, 32, 64 units. Seven stones are enough to balance every whole amount from 1 to 127, each used once at most.

Harappan cubic chert weights were standardised across a huge area (c. 2600–1900 BCE). An early analysis found a doubling series for the small weights (often given as 1, 2, 4 … 64 times a unit of about 0.856 g) and decimal multiples for larger ones. Britannica notes a later analysis that proposes a different, decimal-based series, so treat "binary" as one strong reading, not settled fact.
System lesson

Encoding decides effort. The same number written in tally, Roman numerals or place value takes very different work to add or multiply. Choosing the right representation is a design decision.

Watch out
  • Babylonians and Maya also used placeholder zeros; India's contribution is zero as a full number with rules.
  • Treat "the Indus weights were binary" as one strong reading: Britannica notes a later analysis proposing a decimal-based series.
How it works
  1. c. 2000 BCEBabylonian base-60 place value, still in our minutes and degrees
  2. c. 300 BCEMaya and Babylonian scribes use a placeholder zero
  3. 628 CEBrahmagupta writes rules for calculating with zero as a number
  4. c. 825al-Khwarizmi's book spreads Hindu-Arabic numerals
  5. 1202Fibonacci's Liber Abaci introduces them to European merchants
Fig. 2.3a

Concepts on this page

Place valueZeroBase 60Binary weightsEncoding
TOPIC 2.4 · 40,000 YEARS OF SYSTEMS

Era 4 · Time

Calendars timed farming and festivals; clocks timed work; railways forced one shared time.

Animated sceneDiagramLab3 min read
On the job

FreshCrate's delivery slots were set in Lisbon time, but its new supplier in Madrid ran on Spanish time, an hour ahead, though the cities are only five degrees of longitude apart. Deliveries were scheduled for the wrong hour twice. Rafael laughed: "Time zones are political decisions dressed up as geography."

Problem

People need to act together: plant before the rains, meet on market day, catch the same train.

Idea
  1. c. 3000 BCEEgypt's 365-day civil calendar
  2. AncientIndian panchang: combined lunar and solar reckoning
  3. 1656Huygens' pendulum clock: accurate to seconds a day
  4. 1 Dec 1847British railways adopt Greenwich time
  5. 18 Nov 1883US and Canadian railroads switch to standard zones
  6. Oct 1884Washington conference picks Greenwich as 0°
  7. 1918US law makes standard time official
Fig. 2.4a

The sun crosses 1° of longitude every 4 minutes, so every town once had its own noon. That was harmless until trains connected them: a timetable with a different "12:00" at each station is a coordination failure.

Local time

Every town had its own noon.

For most of history, noon was when the sun stood highest over your own town. The sun crosses 1° of longitude every 4 minutes, so a town 15° to the east was a whole hour ahead. Nobody minded, because nothing moved faster than a horse.

The railway problem

Then trains connected the towns.

A timetable with a different "12:00" at every station is a recipe for missed connections and collisions. The network created a coordination failure that local clocks could not fix. Railways had to choose one time.

Standard time

One clock per zone.

British railways adopted Greenwich time from 1 December 1847. In North America, the railroads switched to four standard zones on 18 November 1883, "the day of two noons". The private network moved first; US law only followed in 1918.

Prime meridian

The world picks a zero line.

The International Meridian Conference in Washington (October 1884) recommended Greenwich as longitude 0°. France abstained and kept Paris time for decades. A standard creates winners, which is why choosing one is political as well as technical.

India

One clock for a wide country.

Indian Standard Time is set by the meridian at 82.5° E, near Mirzapur, five and a half hours ahead of UTC. India spans roughly 68° E to 97° E, so the sun rises about two hours earlier in Arunachal Pradesh than in Kutch while the clocks agree. One national time is a trade-off, accepted on purpose.

Sun time vs clock timeWhere is noon, really?

Rule used: solar noon in IST = 12:00 + 4 minutes × (82.5 − your longitude). It ignores the "equation of time", which shifts real solar noon by up to about ±16 minutes across the year.

–solar noon on the clock (IST)
–sun vs clock

Around the world

Time zones balance convenience against the sun. China spans about 60° of longitude but uses one zone, so in far-western Xinjiang the sun can rise after 9 a.m. by the clock. Spain sits mostly west of Greenwich but has used Central European Time since 1940. India uses one zone, set by the meridian at 82.5° E, 5 hours 30 minutes ahead of UTC: the sun rises roughly two hours earlier in the far east of the country than in the far west, on the same clock. Russia, by contrast, uses eleven zones. One shared time simplifies trains and broadcasts; local sun time makes daily life feel natural.

System lesson

Synchronisation is a system. Networks (rail, telegraph, internet) force shared standards, and the private network often moves before the law does.

Concepts on this page

Solar timeStandard timePrime meridianIndian Standard Time
TOPIC 2.5 · 40,000 YEARS OF SYSTEMS

Era 5 · Rules and power

Large groups of strangers need rules that are public, fixed and enforceable.

DiagramLab2 min read
On the job

As FreshCrate grew past 300 staff, every manager had their own rules for breaks, overtime and refunds. Disputes took hours. Inês wrote one public handbook. Complaints about unfairness fell sharply. Rafael said she'd rediscovered something very old: "Strangers cooperate when the rules are written, public and the same for everyone."

Problem

In a village, everyone knows everyone. In a city or empire, you deal with strangers, so you need rules you can predict without knowing the person.

Idea
  • Written law: the Code of Ur-Nammu (c. 2100 BCE) and Hammurabi's code (c. 1754 BCE) made rules public and fixed: anyone could, in principle, check them.
  • Administration: Kautilya's Arthashastra (an Indian treatise on statecraft, economy and administration, composed over several centuries around the start of the common era) describes treasuries, officials, spies, taxes and audits. Rome ran censuses and roads. China formalised imperial examinations (from the Sui dynasty, around 605 CE) to pick officials by merit.
  • Bureaucracy: Max Weber (early 20th century) described it as rule-bound, hierarchical, written, impersonal administration: a design for predictability at scale.
  • Constitutions and checks and balances: systems designed so no single part can dominate (separation of powers).
Constitutionthe rules for making rules
Lawsrules for everyone
Regulationsdetailed rules by agencies
Procedureshow officials apply them
Fig. 2.5a
Around the world

Most modern constitutions split power between a legislature, an executive and courts. Many, such as those of the United States (1789), Germany (1949), India (1950) and Brazil (1988), also split power between national and regional governments.

System lesson

Rules are interconnections. Changing the rules changes behaviour more reliably than changing the people (leverage point 5).

How it works

Written, public rules turn power into a system: people can predict decisions and appeal against mistakes.

  1. c. 1754 BCEHammurabi's code in Babylon, carved on public stone
  2. 6th century CEJustinian's code organises Roman law
  3. 1215Magna Carta limits the English king's power
  4. 1787the US Constitution separates powers
  5. 1948the Universal Declaration of Human Rights
Fig. 2.5b

Sociologist Max Weber described bureaucracy, rule-bound, written and impersonal administration, as a powerful system for running large organisations fairly, though he also warned it could become an "iron cage".

Checks and balances are a design pattern: no single part can dominate, because others can block or correct it.

In practice

Write rules down, publish them, apply them equally and provide a way to appeal. Those four steps work for a company handbook as well as a constitution.

Questions to ask

Are your rules written down, public, applied equally, and open to appeal? If any of the four is missing, expect disputes, favouritism or quiet rule-breaking.

Key terms

Rule of law: rules apply to rulers as well as the ruled. Separation of powers: law-making, governing and judging held by different bodies. Appeal: a way to challenge a decision.

Concepts on this page

Written lawBureaucracyChecks and balances
TOPIC 2.6 · 40,000 YEARS OF SYSTEMS

Era 6 · Knowledge

Systems for organising what is known, and for finding out what isn't.

DiagramLab2 min read
On the job

Inês's team kept solving the same warehouse problems because nobody wrote down what worked. Rafael suggested a simple wiki: every fix recorded, with what was tried and what happened. "Science is just that," he said. "A system for learning that corrects its own errors."

Problem

Knowledge piles up faster than anyone can remember it, and much of what people "know" is wrong.

Idea
  • Formal rule systems: Pāṇini's Aṣṭādhyāyī (c. 4th century BCE) describes Sanskrit in about 4,000 compact rules, often compared to modern formal grammars.
  • Logic: Aristotle's syllogisms; the Indian Nyāya school's theory of valid inference.
  • Libraries and catalogues: Alexandria; the great monastic university at Nalanda; much later the Dewey Decimal Classification (1876).
  • Printing: Gutenberg's movable-type press (c. 1450) made copies cheap and identical.
  • Classification: Linnaeus' Systema Naturae (1735) gave species two-part names in a nested hierarchy.
  • The scientific method: observe, hypothesise, test, revise. A knowledge system with built-in error correction.
  • Kingdom
    • Phylum
      • Class
        • Order
          • Family
            • Genus
              • Species
Fig. 2.6a
System lesson

Hierarchy and error correction. Good knowledge systems are organised so things can be found, and designed so mistakes get caught.

How it works

Knowledge systems do two jobs: organising what is known, and finding out what isn't.

LibrariesAshurbanipal's in Nineveh, the Library of Alexandria, Nalanda
ClassificationLinnaeus's species names (1735), the Dewey Decimal system (1876)
EncyclopaediasDiderot's Encyclopédie (1751), Wikipedia (2001)
Peer reviewjournals check claims before publishing them
The scientific methodhypotheses tested against evidence, results open to challenge
Fig. 2.6b

What makes science a system rather than a collection of facts is its error correction: claims are published, tested, repeated and revised. Ibn al-Haytham, in Cairo around 1020, insisted on testing optical theories by experiment, centuries before Europe's scientific revolution.

Good classification lets people find things they didn't know existed, by looking in the right place.

In practice

Write down what you tried and what happened, including failures. A team that records its experiments learns faster than one that relies on memory.

Try it

Think of one thing your team keeps rediscovering. Where would a record of it live so people actually find it?

Questions to ask

How does your team find out it was wrong? A knowledge system without a way to correct errors spreads mistakes as efficiently as facts.

Peer review, replication and open data are science's error-correcting tools. In a company, the equivalents are blameless post-incident reviews, A/B tests and shared dashboards that anyone can question.

Key terms

Classification: arranging things in nested categories. Peer review: experts checking work before publication. Replication: repeating a study to see if results hold. Hypothesis: a testable guess about how something works.

Libraries, encyclopaedias and labs all solve the same two problems: keeping what is known, and finding out what isn't.

Concepts on this page

ClassificationScientific method
TOPIC 2.7 · 40,000 YEARS OF SYSTEMS

Era 7 · Value and trade

Coins, credit, ledgers and banks: machines for manufacturing trust between strangers.

DiagramFlip cardsLab2 min read
On the job

FreshCrate's accounts didn't balance at month end, and nobody could find why. Rafael asked if they used double entry. They didn't: every payment was recorded once. "Venetian merchants solved this in the 1400s," he said. "Record everything twice, and the error shows itself."

Problem

Barter needs a "double coincidence of wants". Trade over distance and time needs strangers to trust each other.

Idea
  1. c. 600 BCECoins in Lydia; punch-marked coins in India from about the same era
  2. MedievalHundi: written orders to pay across Indian merchant networks
  3. 1494Luca Pacioli sets out double-entry bookkeeping
  4. 1602Dutch East India Company: shares traded by many investors
  5. 1694Bank of England founded
  6. 2016UPI: real-time payments between any two Indian bank accounts
Fig. 2.7a

Double-entry bookkeeping records every transaction twice, a debit and an equal credit, so the books must balance. It is an error-detection system built from redundancy. Post the events below, then press the dashed "mistake" button.

Double-entry ledgerEvery transaction, recorded twice

A small shop's first week. Post each event and watch both sides move.

Debit (Dr) is the left column, credit (Cr) the right. Assets such as cash grow on the debit side; capital, sales and money owed to others grow on the credit side.

  1. Post all the events: the trial balance stays equal at every step.
  2. Press the dashed "mistake" button: a one-sided entry breaks the balance at once.
  3. That is the point. Double entry is an error-detection system: redundancy that makes mistakes visible.
System lesson

Trust can be engineered: through standards (coin weights), redundancy (double entry), intermediaries (banks and clearing houses) and audit trails. Tap the cards.

Around the world

Trust between strangers has been built in many ways: Chinese merchants' remittance banks, Arab traders' hawala networks, India's hundi, and the bills of exchange of medieval European fairs all let money move across long distances on written promises, backed by reputation.

How it works

Double-entry bookkeeping records every transaction twice: once as a debit and once as a credit, so the books always balance.

A sale happensdebit cashcredit salestrial balance: debits = creditserrors show up as a mismatch
Fig. 2.7bThe self-checking ledger.

Luca Pacioli described the method in print in 1494, though Italian merchants had used it for over a century. It turned accounting into a system that checks itself, which let banks and companies grow far beyond what one trusted person could oversee.

Modern databases borrow the same idea with transactions: a payment either updates both accounts or neither.

Key terms

Debit and credit: the two sides of every entry. Trial balance: a check that total debits equal total credits.

Concepts on this page

CoinageHundiDouble-entry bookkeepingTrial balanceEngineered trust
TOPIC 2.8 · 40,000 YEARS OF SYSTEMS

Era 8 · Standards

Units, threads, containers and protocols: contracts that let strangers' parts fit together.

DiagramLab2 min read
On the job

FreshCrate bought crates from three suppliers. Each was a slightly different size, so they didn't stack in the vans, wasting space on every trip. Inês set one crate standard. Van capacity rose by 15%. Rafael said the shipping container did the same for world trade.

Problem

Industry and trade need parts, goods and measures that match everywhere, without the makers ever meeting.

Idea
  1. 1790sFrance creates the metric system: decimal units tied to nature
  2. 1799Platinum standards for the metre and kilogram
  3. 1841Joseph Whitworth proposes a standard screw thread
  4. 1960The International System of Units (SI)
  5. Late 1960sISO standards for shipping containers
  6. 2019All SI base units defined by constants of nature
Fig. 2.8a

A standard has three parts: a definition, a reference anyone can check (an object, then a physical constant) and an authority that maintains it (BIPM for SI; ISO, and in India the Bureau of Indian Standards).

Around the world

Most countries adopted the metric system in the 19th and 20th centuries: France first in 1795, Japan from 1924, India in the late 1950s, and the UK partly from 1965. The US remains a well-known exception for everyday use. Postal codes followed a similar path: Germany introduced them in 1941, the US ZIP code in 1963, and India's PIN code in 1972 (Case 6.7).

System lesson

Standards are interfaces. Wherever two parts from different owners meet, a standard saves endless negotiation.

How it works

A standard needs a definition, a reference people can check against, and someone to maintain it.

  1. 1799France's platinum metre and kilogram
  2. 1841Whitworth's standard screw threads in Britain
  3. 1884the prime meridian set at Greenwich
  4. 1956Malcom McLean's first container ship sails from New Jersey
  5. 1968ISO begins standardising container sizes
  6. 1983ARPANET switches to TCP/IP
  7. 2019SI units redefined by constants of nature
Fig. 2.8b

The shipping container cut the cost of loading cargo dramatically and made global supply chains possible, because every port, crane, ship and truck could handle the same box.

Standards create network effects: the more people use one, the more valuable it becomes, which is why switching away from even a poor standard is hard.

In practice

When parts from different people need to fit together, agree the interface first and publish it.

Questions to ask

Which interfaces in your system would let strangers' parts fit together if you published them? And who maintains each standard you depend on? A standard without a maintainer slowly drifts apart.

Key terms

Standard: a shared definition everyone can check against. Interface: the point where two parts meet. Network effect: a standard becoming more valuable as more people use it. Maintainer: the body that keeps a standard up to date.

Concepts on this page

StandardSI units
TOPIC 2.9 · 40,000 YEARS OF SYSTEMS

Era 9 · Production

Interchangeable parts, assembly lines and lean: factories became flows, and the bottleneck ruled.

DiagramFlip cardsLab2 min read
On the job

Rafael asked Inês to time each step of packing an order. Picking took 40 seconds, checking 15, bagging 20, labelling 90. The label printer was the bottleneck. Inês added a second printer, and the whole line's output nearly doubled, though nobody had worked harder.

Problem

Craft production was slow, costly and inconsistent. Demand outgrew it.

Idea
  1. c. 1800Interchangeable parts in French and American arms making
  2. 1911F. W. Taylor, The Principles of Scientific Management
  3. 1913Ford's moving assembly line, Highland Park
  4. 1950s →Toyota Production System (Taiichi Ohno): just-in-time, kanban, jidoka
  5. 1984Eliyahu Goldratt, The Goal: the theory of constraints
Fig. 2.9a

The key insight: a factory, kitchen or hospital is a flow. Output is set by the slowest step, the bottleneck. Speeding up anything else just piles up work in front of it.

The production lineFind the bottleneck, then try pull
0minutes run
0finished units
0throughput (units/min)
0work in progress
–lead time (Little's law)

  1. Run in push mode. Output settles at the slowest station's rate, and the buffer in front of it keeps growing.
  2. Speed up any other station: output doesn't change. Speed up the bottleneck: output rises until a new bottleneck appears.
  3. Switch to pull. Same output, a fraction of the work in progress, and a much shorter lead time.
Around the world

Toyota's methods spread worldwide from the 1980s: to US and European carmakers, to India after the Maruti Suzuki partnership (1982), and from factories into hospitals and software teams.

System lesson

Flow beats busyness. Pull, small buffers and attention on the bottleneck produce more with less waiting.

How it works

Modern production turned factories into flows, and the slowest step decides the speed of the whole.

  1. 1798Eli Whitney promotes interchangeable parts for muskets
  2. 1913Ford's moving assembly line cuts Model T assembly from 12 hours to about 90 minutes
  3. 1950sToyota develops just-in-time and stopping the line for defects
  4. 1984Eliyahu Goldratt's The Goal popularises the theory of constraints
Fig. 2.9b

The theory of constraints says: find the bottleneck, make sure it never waits, and only then improve elsewhere. Improving a non-bottleneck step only creates piles of waiting work.

Lean manufacturing adds pull: produce only what the next step needs, keeping buffers small so problems show up quickly.

In practice

Time every step before investing. The bottleneck is rarely where people complain loudest.

Questions to ask

Where does work pile up in your process? That pile sits in front of the bottleneck.

Key terms

Bottleneck: the slowest step. Pull: producing only what the next step asks for.

Concepts on this page

Interchangeable partsBottleneckTheory of constraintsPush vs pullKanbanJidoka
TOPIC 2.10 · 40,000 YEARS OF SYSTEMS

Era 10 · Information and control

Feedback became a science, information became measurable, and machines began to steer themselves.

DiagramLab2 min read
On the job

Inês's new dashboard showed late orders in real time, and drivers rerouted themselves. Rafael called it a cybernetic loop: "Measure, compare with the goal, correct. Norbert Wiener wrote about it in 1948, the same year Claude Shannon showed how to measure information itself."

Problem

Systems became too fast and too large for people to watch and steer by hand.

Idea
  1. 1788Watt's centrifugal governor: a machine that regulates its own speed
  2. 1844Morse's telegraph line, Washington to Baltimore
  3. 1948Claude Shannon measures information in bits
  4. 1948Norbert Wiener names cybernetics: control and communication
  5. 1956W. Ross Ashby: the law of requisite variety
  6. 1961Jay Forrester, Industrial Dynamics: computer simulation of stocks and flows
  7. 1969ARPANET connects its first computers
  8. 1 Jan 1983ARPANET switches to TCP/IP: the internet's "flag day"
  9. 1989–91Tim Berners-Lee's World Wide Web
Fig. 2.10a

Shannon showed that any message can be measured in bits and sent reliably over a noisy channel by adding the right redundancy. Wiener showed that animals and machines both steer by feedback. Ashby showed a controller needs at least as much variety (possible responses) as the disturbances it faces.

Around the world

Railways were early adopters of large computer systems: American Airlines and IBM's SABRE reservation system went live in the early 1960s, and India's computerised railway reservation began in New Delhi in 1986.

System lesson

Everything becomes information. Modern systems are designed as flows of data with feedback, which is why Part 5 exists.

How it works

In the 20th century, feedback and information became sciences, and machines began to steer themselves.

  1. 1788James Watt's centrifugal governor controls steam engine speed
  2. 1948Wiener's Cybernetics; Shannon's information theory, measured in bits
  3. 1969ARPANET's first message, between UCLA and Stanford
  4. 1991Tim Berners-Lee's World Wide Web goes public
  5. 2007smartphones put sensors and networks in billions of pockets
Fig. 2.10b

W. Ross Ashby's law of requisite variety says a controller must be able to respond in as many ways as the disturbances it faces. Rigid systems fail when the world varies more than they can.

Public digital infrastructure has spread worldwide: Estonia's digital identity from 2002, Kenya's M-Pesa from 2007, India's Aadhaar from 2010 and UPI from 2016, and Brazil's Pix from 2020.

In practice

A control loop needs a sensor, a goal, a comparison and an actuator. When something isn't controlled, check which of the four is missing.

Questions to ask

What does your system measure, how quickly does that reach someone who can act, and what do they do with it? Every missing link breaks the loop.

Key terms

Cybernetics: the study of control through feedback. Bit: the basic unit of information. Requisite variety: a controller must match the variety of disturbances. Actuator: the part that acts on the world.

Concepts on this page

CyberneticsInformation theoryRequisite variety
TOPIC 2.11 · 40,000 YEARS OF SYSTEMS

Checkpoint: The human story

Nine questions across the ten eras.

Checkpoint2 min read
TOPIC 3.0 · CATEGORIES AND SUB-CATEGORIES

The map of families

Seven families, each with sub-categories, and one rule: real systems are stacks of several families.

DiagramFlip cardsLab2 min read
On the job

Inês listed everything FreshCrate depended on: roads and electricity (infrastructure), payments and prices (economic), its app and databases (information), staff roles (organisational), product labels and units (symbolic), the weather (natural) and its brand (design). "Every real system is a stack of families," Rafael said. "Problems often live in the layer you forgot to draw."

Idea
  • Systems
    • 1 Natural — physics, chemistry, evolution
      • Ecosystems · the body · climate and water
    • 2 Symbolic — shared meaning
      • Language · number · law · calendars · classification
    • 3 Economic — incentives and trust
      • Money · markets · accounts · payments · insurance · tax
    • 4 Infrastructure — engineering and maintenance
      • Water · energy · transport · telecom · cities · post
    • 5 Organisational — roles, rules, information
      • Firms · supply chains · government · public services
    • 6 Information — data and protocols
      • Networks · computers · the internet · data and AI
    • 7 Design — consistency and reuse
      • Measurement standards · design systems · brands
Fig. 3.0a

Five questions to classify any system. Tap each card.

Systems are stacks

A UPI payment depends on every family at once:

Informationapp, NPCI switch, encryption
OrganisationalRBI rules, NPCI, banks, app makers
Economicbank accounts, settlement, fees
Infrastructuremobile networks, power, data centres
Symbolicthe rupee, contract law, numbers
Fig. 3.0b

When a lower layer fails (a power cut, a network outage, a rule change), every layer above it fails too. Knowing your stack is the first step of system design.

In practice

When a system fails, check each family in its stack: a software bug, a pricing incentive, a missing role, a broken standard or a storm can all look the same from the outside.

How it works

Real systems are stacks: each family rests on others below it.

Designbrands, interfaces, standards people see
Informationapps, data, networks
Organisationalroles, rules, teams
Economicprices, incentives, contracts
Symboliclanguage, numbers, law, money
Infrastructurepower, water, roads, telecoms
Naturalclimate, land, living systems
Fig. 3.0c

A food-delivery app looks like an information system, but it depends on drivers' incentives (economic), traffic rules (symbolic), roads and mobile networks (infrastructure) and the weather (natural).

The order isn't strict, and families overlap, but drawing the stack helps you notice dependencies you'd otherwise miss.

Key terms

Family: a group of systems sharing a main driver, such as physics, meaning, incentives or engineering. Stack: layers of systems, each relying on those below. Dependency: something a system needs in order to work.

Drawing the stack for a familiar system, such as a hospital, a school or a supermarket, is a good way to practise. Start at the bottom with nature and infrastructure, and work up to what people see.

Concepts on this page

Families of systemsSystem stack
TOPIC 3.1 · CATEGORIES AND SUB-CATEGORIES

Natural systems

Driven by physics, chemistry and evolution. Nobody designed them, and they teach resilience better than anything humans built.

DiagramLab2 min read
On the job

A heatwave in July 2025 spoiled a day's worth of FreshCrate's chilled stock when a van's cooling unit failed in traffic. Inês had planned for broken vans, not for weather. Rafael pointed out that nature is the oldest system and the least negotiable: "You design around it, not against it."

Sub-categories
Sub-category Examples Key mechanism
Ecosystems forests, coral reefs, mangroves food webs, nutrient cycles, many species filling many roles
The body temperature, blood sugar, immunity homeostasis: many balancing loops holding conditions steady
Climate and water the water cycle, the monsoon, ocean currents energy from the sun driving huge flows of heat and water
EvaporationCondensation (clouds)RainRun-off and groundwater↻
Fig. 3.1aA cycle: each stage feeds the next.
Idea

Natural systems rarely optimise one number. A forest doesn't maximise timber; it keeps many species, many loops and many buffers. That diversity is why it survives fires, pests and droughts that would wipe out a single-crop plantation.

Around the world

Monsoons and other seasonal rains shape whole economies: South Asia's monsoon fills reservoirs and feeds the summer crop; West Africa's rainy season and East Africa's two rainy seasons do the same. Mangroves, from Bangladesh and India's Sundarbans to Florida and Indonesia, buffer coasts against storms: natural shock absorbers.

Design lesson
  • Diversity and redundancy create resilience.
  • Many small balancing loops beat one big controller.
  • Work with natural flows (rainwater harvesting, flood plains) rather than against them.
How it works

Natural systems run on energy flows, nutrient cycles and feedback, refined over millions of years without a designer.

Sun powers plantsPlants feed animalsWaste and death feed soil lifeSoil feeds plants↻
Fig. 3.1bA cycle: each stage feeds the next.

They teach several design lessons: nothing is wasted, because one organism's output is another's input; diversity spreads risk; and many small, distributed parts are more resilient than a few large ones.

Biomimicry borrows these ideas: Japan's Shinkansen bullet train nose was reshaped after the kingfisher's beak to cut noise, and buildings in Zimbabwe's Eastgate Centre were designed with ventilation inspired by termite mounds.

In practice

List the natural forces that can disrupt your system, such as heat, floods, storms or drought, and decide in advance how you'll keep working when they arrive.

Questions to ask

Which natural cycles does your system depend on, such as seasons, rainfall, temperature or daylight? And which of its outputs end up back in nature?

Key terms

Ecosystem: living things and their environment, interacting. Nutrient cycle: materials reused endlessly. Biomimicry: design inspired by nature. Carrying capacity: the population an environment can support long term.

Natural systems also show limits: populations that outgrow their food supply crash, a pattern human systems repeat when they ignore their own carrying capacity. Designing within limits, rather than assuming endless growth, is one of the oldest lessons nature offers.

Concepts on this page

Homeostasis
TOPIC 3.2 · CATEGORIES AND SUB-CATEGORIES

Symbolic systems

Systems made of shared meaning: they work only because people agree on them.

DiagramLab2 min read
On the job

FreshCrate's app showed prices with a comma for decimals for Portuguese customers and a full stop for English speakers. A bug swapped them, and a 1,50 € bag of apples showed as 150 €. Hundreds of people abandoned their baskets. "Symbols only work when everyone reads them the same way," Rafael said.

Sub-categories
Sub-category Examples What it lets people do
Language and writing scripts, grammar, dictionaries share complex ideas across distance and time
Number place value, units, mathematics calculate, measure, compare
Law constitutions, contracts, codes predict how strangers will behave
Calendars and time panchang, Gregorian calendar, IST act together at the same moment
Classification libraries, taxonomies, codes like PIN or HS codes find things and route them
Idea

A rupee note is paper; a contract is ink; a red light is coloured glass. Their power comes entirely from shared agreement. Symbolic systems are cheap to copy and spread, but they collapse when agreement collapses (think of a currency nobody accepts).

Example

Grammar is a rule system that generates endless sentences from a few thousand rules: Pāṇini's 4,000 rules for Sanskrit are the classic case. Programming languages are the same idea for machines.

Around the world

Many countries run several symbolic systems at once. India lists 22 languages in its constitution, uses several calendars and groups large numbers in lakhs and crores as well as millions. Switzerland has four national languages; Ethiopia keeps its own calendar, about seven years behind the Gregorian one; Japan counts years by imperial eras alongside the Western calendar.

Design lesson
  • A good encoding makes hard things simple (place value, PIN codes).
  • Symbols need maintenance: definitions, authorities, versions.
  • Adoption matters more than elegance; a standard nobody uses is not a standard.
How it works

Symbolic systems include languages, number systems, calendars, maps, musical notation and money. They exist only because people agree on them.

Languagesounds and signs with shared meaning
Numbersdigits, place value, decimal separators
Calendars and timedates, days, time zones
Maps and addressescoordinates and postal codes
Laws and moneywritten rules and units of value
Fig. 3.2a

Because they rely on agreement, symbolic systems are hard to change: billions of people would need to switch at once. That's why the QWERTY keyboard, designed for typewriters in the 1870s, is still standard.

Small mismatches can be costly: in 1999, NASA lost the Mars Climate Orbiter because one team used imperial units and another metric.

In practice

Wherever data crosses between systems, write down the format: units, date order, decimal separator, time zone, currency and character encoding.

Questions to ask

Which symbols in your system could be read two ways? Dates, decimals and units are the usual suspects.

Key terms

Convention: a rule kept because others keep it. Encoding: how symbols are stored.

Concepts on this page

Shared agreement
TOPIC 3.3 · CATEGORIES AND SUB-CATEGORIES

Economic systems

Driven by incentives, prices and trust. People respond to what the system rewards.

DiagramLab2 min read
On the job

FreshCrate paid drivers per delivery. Drivers rushed, skipped calling customers, and left bags at the wrong doors. Complaints soared. Inês changed pay to include a bonus for on-time, correct deliveries. Rushing fell overnight. "People respond to what the system rewards," Rafael said, "not to what you tell them you want."

Sub-categories
Sub-category Examples Core problem it solves
Money coins, notes, digital rupees a common measure and store of value
Markets bazaars, stock exchanges, auctions matching buyers and sellers; discovering prices
Accounting double entry, audits keeping honest, checkable records
Banking and payments banks, clearing, UPI moving value and credit between strangers
Insurance life, crop, health insurance pooling risk so no one is ruined by bad luck
Taxation GST, income tax funding shared services
Idea

Prices are information flows. A rising price signals scarcity to buyers (use less) and sellers (make more): a balancing loop that no one has to run. Markets fail where this loop is missing, for example when pollution has no price.

Incentives beat instructions. People optimise what is measured and rewarded, so the design of incentives is the design of behaviour (and of Goodhart's law, Topic 4.2).

Around the world

Value-added tax, now used in more than 170 countries, is a system where each business's sale is another's input credit, so records cross-check each other: double entry at national scale. India's GST (2017) is one of the newest and largest; the EU's VAT system and Brazil's ongoing tax reform are others.

Design lesson
  • Design incentives first; instructions second.
  • Every economic system needs trust machinery: standards, records, audits, enforcement.
  • Watch for missing prices: costs nobody pays get overproduced.
How it works

Economic systems coordinate people through prices, incentives, contracts and trust.

An incentive is setpeople change behaviour to earn itresults, intended and unintendedthe designer adjusts
Fig. 3.3aIncentives shape behaviour, often in surprising ways.

Goodhart's law warns that when a measure becomes a target, it stops being a good measure. Paying for deliveries per hour rewards speed, not care; paying for calls answered rewards short calls, not solved problems.

The famous "cobra effect" story from colonial Delhi, where a bounty on dead cobras supposedly led people to breed them, is probably exaggerated, but similar cases are well documented, such as rat-tail bounties in Hanoi in 1902.

In practice

Before rewarding a number, imagine how someone could hit it without achieving what you actually want.

Questions to ask

What behaviour does each payment, bonus or price in your system reward? Who could earn it without doing what you actually want?

Key terms

Incentive: a reward or cost that shapes behaviour. Goodhart's law: a target stops being a good measure. Perverse incentive: one that rewards the opposite of what's wanted.

Concepts on this page

Prices as informationIncentives
TOPIC 3.4 · CATEGORIES AND SUB-CATEGORIES

Infrastructure systems

Engineering that everything else stands on. Built once, maintained forever.

DiagramLab2 min read
On the job

When Lisbon's metro workers went on strike for a day, half of FreshCrate's warehouse staff arrived late, and the morning collapsed. Inês had never thought of the metro as part of her system. "Infrastructure is invisible until it stops," Rafael said. "Then it's the only thing anyone talks about."

Sub-categories
Sub-category Examples Typical stock and flow
Water and sanitation dams, canals, pipes, drains reservoir level; litres per day
Energy power plants, grids, fuel supply generation and demand, second by second
Transport roads, railways, ports, airports vehicles and passengers per hour
Telecom telegraph, phone, mobile, fibre data per second
Cities land use, housing, public space people, buildings, density
Post and addressing India Post, PIN codes letters and parcels per day
Idea

Infrastructure is a stock-and-flow structure (leverage point 10): powerful, slow and expensive to change once built. A railway line laid in the 1860s still shapes where towns grow. Most of its lifetime cost is maintenance, which is the part most easily cut and most dangerous to cut.

An electricity grid is a stock-and-flow system with almost no stock: supply must match demand second by second, which is why grid frequency is watched constantly and why storage matters so much as solar grows.

Around the world
  • Harappan cities (c. 2600–1900 BCE) had covered street drains of baked brick, among the best urban sanitation of the ancient world.
  • Roman aqueducts carried water to cities for centuries; parts of Rome's still feed fountains.
  • Kallanai (the Grand Anicut) on the Kaveri, traditionally dated to around the 2nd century CE, is among the oldest water-regulating structures still in use.
  • The London Underground, opened in 1863, was the world's first underground railway.
Design lesson
  • Budget maintenance from day one; it is the hidden majority of cost.
  • Leave capacity margins: infrastructure is used far longer than planned.
  • Standards (track gauge, voltage, pipe sizes) decide what can connect later.
How it works

Infrastructure systems, such as water, power, roads, rail, ports and telecoms, are expensive to build, last for decades, and are shared by everything above them.

Energypower stations, grids, fuel supply
Waterreservoirs, treatment, pipes, sewers
Transportroads, rail, ports, airports
Communicationscables, towers, data centres
Public serviceshealth, education, emergency response
Fig. 3.4a

Because they're built once and used for generations, design mistakes last a long time. London's sewer system, designed by Joseph Bazalgette after the "Great Stink" of 1858, still carries much of the city's waste.

Maintenance is the hidden cost: many countries spend far less maintaining infrastructure than building it, so it slowly decays until failures force expensive repairs.

In practice

List the infrastructure your system depends on, and plan what you'll do if each one is down for a day.

Questions to ask

Who maintains the infrastructure you rely on?

Concepts on this page

Maintenance
TOPIC 3.5 · CATEGORIES AND SUB-CATEGORIES

Organisational systems

Roles, rules and information flows that let many people act as one.

DiagramLab2 min read
On the job

FreshCrate had grown so fast that nobody knew who decided what. Pickers asked three managers the same question and got three answers. Inês drew one page: each role, what it decides, and who it tells. Arguments dropped within a week. "An organisation is a machine made of agreements," Rafael said.

Sub-categories
Sub-category Examples Key design choice
Firms a restaurant, a start-up, a conglomerate structure: functional, product-based, matrix
Production and supply chains factories, warehouses, logistics flow, buffers, bottlenecks
Government and bureaucracy ministries, municipalities, courts rules, accountability, checks and balances
Public services schools, hospitals, elections access, quality and fairness at scale
Networks and communities cooperatives, associations, open-source projects voluntary coordination and shared norms
Idea

An organisation is an information-processing system: who knows what, who decides what, who is told. Conway's law (1968): organisations design systems that mirror their own communication structure. If three teams build a product, it will have three parts that talk to each other the way the teams do.

InformationDecisionActionResult(feedback)Information
Fig. 3.5aMost organisational failures are broken links in this loop
Around the world

Cooperatives let many small producers act together while keeping ownership: India's Amul dairy federation, Spain's Mondragon group of worker cooperatives, and Kenya's SACCOs are well-known examples. Mumbai's dabbawalas (Case 6.5) show how far simple roles and codes can scale without software.

Design lesson
  • Structure shapes output (Conway's law). Design the teams you want the product to resemble.
  • Decision quality depends on information flow. Shorten the loop from front line to decision.
  • Write roles and rules down; ambiguity scales badly.
How it works

Organisations coordinate many people through roles, rules, information flows and culture.

  • Organisation
    • Roles: who does what
    • Decision rights: who decides what
    • Information flows: who knows what, when
    • Rules and routines: how work is done
    • Culture: what people do when nobody is watching
Fig. 3.5b

Conway's law, from programmer Melvin Conway in 1968, observes that organisations design systems that mirror their own communication structure. Split a team in three, and you'll likely get a product in three loosely joined parts.

Good organisational design matches decision rights to information: people closest to the problem should have the power to act on it.

In practice

For any recurring decision, write down who makes it, what information they need, and how they hear about results.

Questions to ask

For your three most frequent decisions, who decides, with what information, and how quickly do they learn the result? Gaps here show up as delays and repeated arguments.

Key terms

Role: a defined set of responsibilities. Decision rights: who may decide what. Conway's law: systems mirror the teams that build them. Span of control: how many people one manager leads.

Write the answers on one page and share it.

Concepts on this page

Conway's law
TOPIC 3.6 · CATEGORIES AND SUB-CATEGORIES

Information systems

Data, protocols and computation: systems that move and transform information at machine speed.

DiagramLab2 min read
On the job

FreshCrate's stock numbers in the app disagreed with the warehouse shelves every afternoon. Customers ordered items that weren't there. Rafael asked how often the two systems synced. Once a night. "Your app is showing yesterday's warehouse," he said. "Information systems are only as good as how fresh and consistent their data is."

Sub-categories
Sub-category Examples Core idea
Communication networks telegraph, telephone, mobile networks moving signals reliably over distance
Computers and software operating systems, apps, databases processing information by rules
The internet TCP/IP, the Web, email a network of networks speaking shared protocols
Data and AI analytics, search, machine learning finding patterns and making predictions
Public digital infrastructure Aadhaar, UPI, DigiLocker shared rails others build on
Idea

Information systems obey every principle of the earlier families, plus three of their own:

  1. Copying is nearly free, so scale arrives fast, along with failure at scale.
  2. Protocols are the standards: the internet works because networks that are nothing alike agree on TCP/IP.
  3. Latency and consistency trade off: data in many places can't be both instantly updated everywhere and always available (Topic 5.6).
Around the world

Several countries have built public digital infrastructure in layers. Estonia's X-Road (2001) links government databases with a digital identity used for almost every public service. India Stack layers identity (Aadhaar, 2010), payments (UPI, 2016) and data sharing. Brazil's Pix (2020) and Singapore's national digital identity follow similar ideas: open interfaces that private apps build on.

Design lesson
  • Design for failure and scale from day one.
  • Open, stable interfaces let others build on you.
  • Security and privacy are structural, not add-ons.

Part 5 covers computer system design in depth.

How it works

Information systems capture, store, move and transform data. Most follow the same pattern.

Capture datastore itprocess itshare it through interfacespeople and machines act on it
Fig. 3.6aThe basic information pipeline.

Three properties matter most: accuracy (is it right?), timeliness (is it fresh?) and accessibility (can the right people get it, and only them?).

Open interfaces, called APIs, let different systems share data in agreed formats. Shared public infrastructure built on open interfaces lets private apps compete on top of common rails.

In practice

For every number people act on, ask where it comes from, how old it is, and who is allowed to change it.

Questions to ask

Where does each important number come from, how old is it when people use it, and who can change it? If nobody can answer, the data probably isn't trustworthy.

Key terms

API: a defined way for programs to exchange data. Latency: delay before data arrives. Data freshness: how recently data was updated. Single source of truth: one agreed place where a fact lives.

Concepts on this page

ProtocolPublic digital infrastructure
TOPIC 3.7 · CATEGORIES AND SUB-CATEGORIES

Design and standard systems

Decide once, reuse everywhere: measurement standards, design systems and brands.

DiagramLab2 min read
On the job

FreshCrate's app, emails and van signs used four different greens and three different logos. Customers sometimes thought scam messages were real, because the real ones looked inconsistent. Inês's designer built one design system: colours, type, components and rules. "Decide once, reuse everywhere," Rafael said. "It's the same idea as the metre."

Sub-categories
Sub-category Examples What gets standardised
Measurement SI units, BIS standards, ISO units, tolerances, test methods
Design systems UI kits, component libraries, design tokens colours, type, spacing, components
Brand systems logos, voice, templates how an organisation looks and sounds
Process standards checklists, ISO 9001, SOPs how work is done and checked
Idea

A design system is a standard for visual and interaction decisions. Design tokens (named values like color-primary or space-4) are to a product what the metre is to engineering: a shared reference that lets many people build parts that fit.

Principleswhy we design this way
Tokenscolour, type, spacing values
Componentsbuttons, cards, forms
Patternssign-up, checkout, search
Productsthe screens people use
Fig. 3.7a
Example

The aviation and surgical checklist is a process standard: a short list that catches the steps experts skip under pressure. The WHO Surgical Safety Checklist (2008) is a widely studied example.

Design lesson
  • Standardise the decisions people keep re-making.
  • Keep a single source of truth, and version it.
  • Your companion course, Seen, covers design systems in detail.
How it works

A design system is a library of decisions that teams reuse instead of reinventing.

Principleswhat the product should feel like
Tokenscolours, type sizes, spacing values
Componentsbuttons, forms, cards
Patternshow components combine for common tasks
Guidelineswhen and how to use each
Fig. 3.7b

Well-known public examples include Google's Material Design (2014), IBM's Carbon, the UK government's GOV.UK Design System and Apple's Human Interface Guidelines.

The benefits are consistency, speed and accessibility: a well-built button with good contrast and keyboard support helps everyone who uses it, everywhere it appears.

In practice

When the same decision is made differently in three places, it's time to make it once and write it down.

Questions to ask

Which decisions are made differently in different places in your product or organisation? Colours, wording, forms and approval steps are common examples.

Each difference costs a little time and confidence. A shared library of decisions, maintained by someone with authority to say no, turns those differences into one good default.

Key terms

Design token: a named value such as a colour or spacing. Component: a reusable interface piece. Pattern: a tested way of combining components. Accessibility: usability by people with different abilities.

Start small: a shared colour palette and a few core components often deliver most of the benefit.

Concepts on this page

Design tokens
TOPIC 3.8 · CATEGORIES AND SUB-CATEGORIES

Checkpoint: Families

Nine questions on families and stacks.

Checkpoint2 min read
TOPIC 4.1 · PRINCIPLES, LAWS, METHODS

Twelve universal principles

What every well-designed system has, shown in a kitchen and in software.

DiagramLab2 min read
On the job

Rafael asked Inês to compare FreshCrate's warehouse with a busy restaurant kitchen. Both had stations, clear roles, a single place where orders arrived, checks before anything left, and a way to call for help. "Good systems share a handful of principles," he said, "whether they're made of chefs or software."

Idea

Switch the example between a restaurant kitchen and software. The principles don't change; only the materials do.

How it works

Across very different systems, the same principles keep appearing.

Clear purposeeveryone knows what the system is for
Simple interfacesparts connect through few, clear points
Separation of concernseach part has one job
Feedbackresults are measured and fed back quickly
Redundancy where it matterscritical parts have backups
Fail safelywhen something breaks, it breaks in a harmless way
Design for changeparts can be replaced without rebuilding everything
Fig. 4.1a

A restaurant kitchen's brigade system, organised by Auguste Escoffier in the late 1800s, separates stations so each cook has one job, with the head chef coordinating at the pass. Software teams describe the same idea as separation of concerns.

In practice

When reviewing any design, check it against these principles one by one. The missing one is usually where the trouble starts.

Try it

Pick a system you use daily, such as a café or a bus route. Which principles does it follow, and which does it break?

Questions to ask

Which principle is your system weakest on? Most failures trace back to a missing purpose, a tangled interface, a part with too many jobs, slow feedback or no safe way to fail.

Principles also conflict: redundancy costs money, and simple interfaces may hide useful detail. Good design is choosing which principle matters most for this system, and writing that choice down so others understand it.

A quick review habit: for any new design, name the purpose in one sentence, draw the interfaces, and mark where it fails safely. If any of the three is hard, the design isn't finished.

Key terms

Separation of concerns: each part has one job. Fail-safe: failing in a harmless way. Interface: where parts connect. Redundancy: spare capacity for critical parts.

Principles are easy to agree with and hard to apply under pressure. Writing them on the wall, and checking designs against them in reviews, turns them from slogans into habits that new team members pick up quickly.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Principles 1–2 (purpose, boundary) decide what you're building.
  • Principles 3–5 (interfaces, modularity, hierarchy) decide its shape.
  • Principles 6–9 (flow, feedback, buffers, redundancy) decide how it behaves under load and failure.
  • Principles 10–12 (standards, simplicity, evolvability) decide how long it lasts.

Concepts on this page

Universal principlesModularityRedundancy
TOPIC 4.2 · PRINCIPLES, LAWS, METHODS

Laws of systems

Short rules from named sources that keep turning up in real projects.

DiagramFlip cardsLab2 min read
On the job

Inês was about to add eight new people to a late software project. Rafael stopped her: "Brooks's law. Adding people to a late software project makes it later." Training and coordination would eat the time they added. She hired two instead, and cut the scope.

Idea

None of these is a law of physics; each is a pattern seen so often that it earned a name. Tap each card.

Example
  • Gall's law in practice: UPI's first version handled simple person-to-person transfers; QR merchant payments, mandates and credit lines came later, on rails that already worked.
  • Conway's law in practice: a company with separate web and mobile teams usually ships web and mobile apps that behave differently.
  • Goodhart's law in practice: a call centre rewarded for short calls gets agents who hang up early.
Watch out
  • Laws are heuristics. Use them to ask questions, not to end arguments.
How it works

The best-known laws of systems are rules of thumb from experience, not laws of physics, but they hold often enough to be worth remembering.

Gall's lawworking complex systems grow from simple working ones
Goodhart's lawa measure that becomes a target stops measuring well
Brooks's lawadding people to a late software project makes it later
Conway's lawsystems mirror the communication of the teams that build them
Little's lawitems inside = arrival rate × time inside
Hyrum's lawwith enough users, every behaviour of a system will be depended on
Fig. 4.2a

John Gall's book Systemantics (1975), Fred Brooks's The Mythical Man-Month (1975) and Melvin Conway's 1968 paper are the original sources for three of these.

Little's law is different: John Little proved it mathematically in 1961, so it holds for any stable queue.

In practice

When a plan feels rushed or a metric suddenly improves, check it against these laws before celebrating.

Questions to ask

Which of these laws is your current project most likely to break? Big rewrites often break Gall's law; new targets often trigger Goodhart's law; and late projects tempt managers into Brooks's law.

None of these laws is absolute, but each describes a pattern that has surprised countless teams. Naming the risk early makes it easier to plan around it.

Key terms

Rule of thumb: a guide from experience, not a proof. Little's law: a proven relationship between items, arrival rate and time in a stable queue. Scope: what a project includes; cutting it is often the honest fix for a late project.

Collect your own: when a pattern surprises your team twice, write it down with an example. Over time, that list becomes your organisation's own field guide.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Concepts on this page

Gall's lawGoodhart's lawBrooks's law
TOPIC 4.3 · PRINCIPLES, LAWS, METHODS

Systems thinking tools

Four tools for seeing structure: the iceberg, causal loop diagrams, stock-and-flow maps and behaviour-over-time graphs.

DiagramLab2 min read
On the job

In a crisis meeting, FreshCrate's managers blamed each other for late deliveries. Rafael suggested drawing an iceberg on the whiteboard: the events (late vans), the patterns (always on Mondays), the structures (Monday orders batched from the weekend) and the beliefs ("we never refuse an order"). The blame stopped once they saw the structure.

Idea

1. The iceberg. Most of a system is below the waterline.

Eventswhat happened ("the server crashed")
Patternswhat keeps happening ("it crashes every sale day")
Structureswhat causes the pattern ("no autoscaling, one database")
Mental modelsbeliefs that keep the structure ("traffic is predictable")
Fig. 4.3a

Act at the event level and you firefight forever; change structures and mental models and the pattern changes.

2. Causal loop diagrams. Variables joined by arrows marked + (same direction) or − (opposite direction); each loop labelled R or B. Fast to sketch with a team on a whiteboard.

3. Stock-and-flow maps. Boxes for stocks, pipes with valves for flows. Slower to draw, but they can be turned into simulations (open-source and free tools: Insight Maker, Vensim PLE, or a few lines of Python).

4. Behaviour-over-time graphs. Sketch how key numbers move over months or years before guessing causes (Topic 1.6).

Example

A start-up's churn problem. Event: "100 users left last week". Pattern: churn rises two months after each big marketing push. Structure: the push brings users the product doesn't suit, and support is swamped. Mental model: "growth at any cost". The fix lives in the bottom two layers.

How it works

The iceberg model reminds you that visible events are the tip of deeper layers.

Eventswhat happened today
Patternswhat keeps happening over time
Structuresthe rules, flows and loops that cause the patterns
Mental modelsthe beliefs that keep the structures in place
Fig. 4.3b

The deeper you act, the more lasting the change: reacting to events fixes today; changing structures and beliefs changes what happens next month.

Causal loop diagrams show feedback; stock-and-flow maps show what accumulates; behaviour-over-time graphs show the pattern. Used together, they turn arguments about blame into discussions about structure.

In practice

When a problem repeats, ask "what structure keeps producing this?" before asking "who did this?"

Questions to ask

Which layer of the iceberg is your team working on today: events, patterns, structures or beliefs?

Key terms

Iceberg model: events, patterns, structures and beliefs. Causal loop diagram: arrows showing cause and effect, marked + or −. Mental model: the beliefs people use to explain how things work.

Draw the iceberg for one recurring problem this week.

Remember
  • Go down the iceberg before acting.
  • Sketch loops with + and − before arguing about solutions.
  • Simulate when intuition and data disagree.

Concepts on this page

Iceberg modelCausal loop diagram
TOPIC 4.4 · PRINCIPLES, LAWS, METHODS

Systems engineering

How aerospace, rail and medical devices are designed: requirements first, every requirement checked.

DiagramLab2 min read
On the job

FreshCrate ordered new refrigerated vans. The first batch had cooling units that couldn't handle Lisbon's summer heat with doors opening every few minutes. Nobody had written that requirement down. Rafael said railway signalling would never work that way: "Every requirement written, every requirement tested, before anything is built."

Idea

Systems engineering grew from defence and space projects in the mid-20th century, where failure was very costly. Its best-known picture is the V-model: design goes down the left side, verification comes up the right, and each design step is checked by the matching test step. The governing international standard is ISO/IEC/IEEE 15288 (system life-cycle processes).

NeedsRequirementsArchitectureDetailed designBuildUnit testIntegration testSystem verificationValidation with users
Fig. 4.4aEach design step on the way down is checked by its mirror on the way up

Key habits:

  • Requirements are written, numbered and testable ("the brake stops the train from 100 km/h within 600 m"), not wishes ("the brakes are good").
  • Traceability: every requirement links to the design that meets it and the test that proves it.
  • Interfaces between subsystems are specified in documents, not assumed.
  • Verification asks "did we build it right?"; validation asks "did we build the right thing?"
Around the world

Space agencies (NASA, ESA, ISRO, JAXA), rail signalling projects such as Europe's ETCS and India's Kavach, and medical device makers all use systems-engineering processes: written requirements, independent verification and safety certification.

Watch out
  • Heavy process suits high-risk, slow-changing systems. For a start-up's web app, a lighter loop (build, measure, learn) usually fits better.
How it works

Systems engineering, developed for aerospace and defence projects in the mid-20th century, is often drawn as a V.

Requirementssystem designcomponent designbuildcomponent testssystem testsacceptance against requirements
Fig. 4.4bThe V model: each design step on the left is checked by a test step on the right.

Each requirement must be testable: not "keep food cold" but "keep the cargo below 5 °C with outside air at 40 °C and the doors opened 30 times an hour".

Traceability links every requirement to a design decision and a test, so nothing is forgotten and every change can be checked for side effects. NASA's Systems Engineering Handbook is a widely used free guide.

In practice

Write requirements as measurable statements with conditions. If you can't describe the test, the requirement isn't finished.

Questions to ask

Can each of your requirements be tested, and do you know which test checks each one?

Key terms

Verification: did we build it right? Validation: did we build the right thing?

Remember
  • Testable requirements are the foundation.
  • Specify interfaces explicitly.
  • Verify (built right) and validate (right thing).

Concepts on this page

V-modelRequirementsVerification and validation
TOPIC 4.5 · PRINCIPLES, LAWS, METHODS

Design thinking and service design

For systems people use: understand them first, then prototype and test in loops.

DiagramLab3 min read
On the job

FreshCrate's new app feature let customers choose delivery windows. Almost nobody used it. Inês watched five customers order, sitting beside them. All of them missed the button, hidden under a menu. Moved to the checkout page, it was used by 60% of customers within a week. "Watch people, then prototype," Rafael said.

Idea

Design thinking (popularised by IDEO and Stanford's d.school) is a loop for human-facing problems:

EmpathiseDefineIdeatePrototypeTest↻
Fig. 4.5aA cycle: each stage feeds the next.

Service design adds the backstage: a service blueprint maps what the customer does, what staff do in front of them, what happens behind the scenes, and which systems support it all, so you see where a promise breaks.

Customer actionsbooks, arrives, waits, pays
Frontstagereceptionist, app screens
Backstagescheduling, billing staff
Support systemsdatabase, payment gateway, SMS
Fig. 4.5b
Example

A clinic's complaints are "long waits". The blueprint shows the real cause backstage: the doctor's schedule and the reception system don't share data, so slots are double-booked. The fix is an interface, not a nicer waiting room.

Watch out
  • Design thinking finds the right problem; it doesn't replace systems thinking about loops, delays and side-effects. Use both.
How it works

Design thinking, popularised by IDEO and Stanford's d.school, is a loop for designing systems that people use.

Empathise: watch and listen to usersDefine: state the real problemIdeate: generate many optionsPrototype: build something cheapTest: try it with real people↻
Fig. 4.5cA cycle: each stage feeds the next.

The key is to make prototypes cheap and tests early, so mistakes cost minutes rather than months. Paper sketches and clickable mock-ups often reveal problems before any code is written.

Usability researcher Jakob Nielsen found in the 1990s that testing with about five users uncovers most usability problems in a design, so small, repeated tests beat one large study.

In practice

Before building anything people will use, watch a few of them try to do the task today.

Questions to ask

When did you last watch a real user try your system? What did they do that surprised you?

Design thinking has critics: some say it's sometimes used as a workshop ritual rather than a real practice. The value comes from the testing with real users, not the sticky notes.

Key terms

Prototype: a cheap version to test an idea. Usability test: watching real people use a design. Iteration: repeating the loop with improvements. Persona: a description of a typical user, based on research.

The approach works beyond apps: hospitals, schools and city services have used the same loop to redesign waiting rooms, forms and bus routes, often with simple paper prototypes tested on real people.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Watch real users before designing.
  • Blueprint the backstage; most service failures live there.
  • Prototype cheaply and test early.

Concepts on this page

Design thinkingService blueprint
TOPIC 4.6 · PRINCIPLES, LAWS, METHODS

Flow, queues and Little's law

Any system that processes items is a queue. Three numbers link throughput, waiting and work in progress.

DiagramLab2 min read
On the job

FreshCrate's customer service phone line had 20 calls waiting every lunchtime. Inês measured: 60 calls an hour arrived, each took 4 minutes, and 4 agents worked. That's 96% utilisation. "Near 100%, waiting explodes," Rafael said. Adding one agent cut the queue to almost nothing, though utilisation only fell to 80%.

Idea

Little's law (proved by John Little, 1961): in any stable system,

L = λ × W: items inside = arrival rate × average time each spends inside.

It holds for clinics, kitchens, factories, ticket counters and servers, whatever the details.

Situation λ (arrivals) W (time inside) L (inside at once)
Clinic 12 patients/hour 1.5 hours 18 patients
Kitchen 40 orders/hour 15 minutes 10 orders
Server 2,000 requests/s 50 ms 100 requests

Utilisation = arrival rate ÷ capacity. As utilisation approaches 100%, waiting time rises sharply, not gradually. For a single server with random arrivals, time in system = service time ÷ (1 − utilisation): 2× at 50% busy, 10× at 90%, 100× at 99%.

ArrivalsQueue (buffer)ServerDone
Fig. 4.6aWaiting explodes near full utilisation
Example

A government office runs one counter at 95% busy. Adding a second counter halves the load per counter and the waiting time collapses, far more than "twice as fast".

Around the world

Ticket sales that open at a fixed time create a burst of arrivals: concert tickets, Japan's popular train reservations, and India's Tatkal railway booking. Each is a textbook peak-load problem, handled with queues and capacity planned for the peak, not the average.

How it works

Queues follow simple but surprising rules.

Arrivalsqueueservicedepartures
Fig. 4.6bEvery process with waiting has this shape.

Little's law links three numbers: work in progress equals throughput times time in system. If 60 orders an hour pass through and each takes 30 minutes, about 30 orders are in progress at any moment.

Waiting time rises slowly at low utilisation and then shoots up as utilisation approaches 100%, because random bursts of arrivals have no spare capacity to absorb them. That's why systems run at 70–85% often feel far better than those run at 95%.

In practice

Don't aim for 100% busy. Keep some slack where waiting is costly, and plan capacity for peaks, not averages.

Questions to ask

What's the utilisation of your busiest resource at peak? If it's above 85%, expect long waits.

Key terms

Utilisation: busy time divided by capacity. Throughput: items completed per unit of time. Work in progress: items started but not finished.

Remember: averages hide the bursts that create queues.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • L = λW: shrink waiting rooms by cutting W.
  • Never run critical resources near 100% busy.
  • Plan for peaks, not averages.

Concepts on this page

Little's lawUtilisation
TOPIC 4.7 · PRINCIPLES, LAWS, METHODS

How systems fail

Seven ways systems break, and the guard for each.

DiagramLab2 min read
On the job

One Monday, FreshCrate's payment provider slowed down. The app kept retrying, every retry added load, and the provider slowed further, until checkout stopped for an hour. "A retry storm," Rafael said. "Your fix for small failures turned one into a big one."

Idea
Failure What happens Guard
Single point of failure One part fails and everything stops Redundancy and failover
Cascading failure Overload spreads from part to part Load shedding, circuit breakers, bulkheads
Hidden coupling Parts depend on each other in undocumented ways Clear interfaces and dependency maps
Drift Small deviations slowly become normal Fixed standards and audits
Perverse incentives The rules reward the wrong behaviour Check every metric against the purpose
Normal accidents In tightly coupled, complex systems small faults combine unpredictably Loosen coupling; simplify
Missing feedback Nobody learns something is wrong Monitoring and short feedback loops

Drift was named "normalisation of deviance" by sociologist Diane Vaughan in her study of the 1986 Challenger disaster: damage to the shuttle's O-ring seals had been seen on earlier flights and gradually came to be treated as acceptable. Normal accidents is Charles Perrow's 1984 argument that in systems both tightly coupled and interactively complex, accidents are inevitable, which favours designs that are loosely coupled or simpler.

The Swiss-cheese model (James Reason, 1990): every defence layer has holes; disasters happen when holes line up. More independent layers, not one perfect layer.

Example

A food-delivery app goes down on New Year's Eve. The payment service slows; app servers wait on it and run out of threads; the login service shares those servers, so nobody can even open the app. Three guards were missing: timeouts, a circuit breaker and a bulkhead between login and payments.

How it works

Systems break in a few recurring ways, each with a known guard.

Single point of failureone part everything depends on · add redundancy
Cascading failureone failure overloads the next · isolate parts, limit load
Retry stormsretries pile on a struggling part · back off and cap retries
Silent data corruptionwrong data spreads unnoticed · validate and checksum
Overloaddemand beyond capacity · shed load, queue, scale
Human errorthe wrong action at the wrong time · checklists, safe defaults
Driftslow decay of standards over time · audits and feedback
Fig. 4.7a

The Swiss cheese model, from psychologist James Reason, describes accidents as several layers of defence each having holes that happen to line up.

Circuit breakers in software, named after electrical ones, stop calling a failing service for a while, giving it time to recover.

In practice

For each critical part, ask how it fails, how you'd know, and what limits the damage.

Remember
  • Ask of every part: what if it is slow, down or wrong?
  • Prefer loose coupling and several independent defences.
  • Audit against the original standard, not last month's habit.

Concepts on this page

Single point of failureCascading failureNormalisation of devianceNormal accidentsSwiss-cheese model
TOPIC 4.8 · PRINCIPLES, LAWS, METHODS

The 10-step method

A repeatable way to design any system, from a tiffin service to a payments platform.

DiagramLab2 min read
On the job

Inês had to design FreshCrate's new click-and-collect service. Instead of jumping to software, she followed Rafael's ten-step method on a single page: purpose, users, load, constraints, building blocks, flows, data, failures, feedback, and how it would change. The design review took twenty minutes instead of three meetings.

Idea
  1. Purpose: one sentence on who it serves and what "working" means, with numbers.
  2. Boundary: draw it; list inputs and outputs.
  3. Stocks: list what accumulates (people, money, inventory, data, trust).
  4. Flows and loops: sketch them; mark delays.
  5. Load: estimate volumes and peaks (Little's law, back-of-envelope sums).
  6. Building blocks: choose modules and interfaces; reuse standards.
  7. Bottleneck: find it and design capacity around it.
  8. Failure: for each part, ask "what if it is slow, down or wrong?"
  9. Feedback: decide what you'll measure, who sees it, how fast.
  10. Start simple: build the smallest version that works (Gall's law), then evolve it with the feedback.
PurposeBoundaryStocksFlowsLoadBlocksBottleneckFailureFeedbackStart simple
Fig. 4.8a

The System design canvas in Studio (Topic 7.1) turns these steps into a worksheet that saves in your browser and copies out as Markdown, with a worked tiffin-delivery example.

How it works

A repeatable method stops you skipping the boring but critical questions.

Purpose and usersload and constraintsbuilding blocksflows and datafailures and feedbackreview and iterate
Fig. 4.8bThe ten steps, grouped into five stages.

The same steps work for a lunch-delivery service, a hospital ward or a payment platform, because they ask about purpose, load, parts, flows and failure rather than about any particular technology.

Steps can loop back: discovering a failure mode often changes the building blocks.

In practice

Keep the method on one page and fill it in before any design meeting. Gaps on the page are the questions the meeting should answer.

Questions to ask

Which of the ten steps do you usually skip? For most teams, it's load estimates, failure handling or feedback.

The method's value is that it forces those questions early, when changing the design is cheap. Answering them after launch costs far more.

Keep a copy of every completed one-page design. Over time, they become a library of decisions and reasons that new team members can learn from.

Key terms

Load: how much work the system must handle. Constraint: a limit you can't change. Failure mode: a way the system can break. Iteration: going back to improve earlier steps.

Practise the method on familiar systems first, such as a school canteen or a bus route, before using it on something new.

Remember
  • Numbers early: purpose and load decide everything else.
  • Design the failure plan, not just the happy path.
  • Ship the simplest working version, then grow it.

Concepts on this page

10-step method
TOPIC 4.9 · PRINCIPLES, LAWS, METHODS

Checkpoint: Designing any system

Nine questions on principles, laws and failure.

Checkpoint2 min read
TOPIC 5.1 · INFORMATION SYSTEMS IN DEPTH

Requirements and numbers

Before drawing boxes, write what it must do, how well, and at what scale.

DiagramLab2 min read
On the job

FreshCrate's developers proposed rebuilding the ordering system "to scale". Inês asked: scale to what? Nobody knew. Rafael helped her write the numbers down: 4,000 orders a day now, 20,000 within two years, peaks of five times the average at 6 p.m., and checkout under two seconds. The design changed completely once those numbers existed.

Idea
  • Functional requirements: what it must do. "Send money to a phone number." "Show the last 50 transactions."
  • Non-functional requirements: how well. Latency ("99% of payments complete in under 2 seconds"), availability, durability, consistency, security, cost.
  • Scale estimates: users, requests per second (average and peak), data per day, read/write ratio.
Availability Downtime per year
99% ("two nines") about 3.65 days
99.9% about 8.8 hours
99.99% about 53 minutes
99.999% about 5.3 minutes

Each extra nine costs far more than the last: more redundancy, more automation, more testing.

Back-of-envelope: NPCI reported a record 25.47 billion UPI transactions in October 2026. That's about 822 million a day, or about 9,500 per second on average. Peaks are several times higher. Change the inputs below.

Back-of-envelope estimatorNumbers decide the design

Default: NPCI's record 25.47 billion UPI transactions in October 2026. The peak factor is an assumption to replace with measured data.

–per day
–per second, average
–per second, at peak
–new records per day
–servers at peak (with 2× headroom)

How it works

Requirements come in two kinds.

Functionalwhat the system must do: place an order, refund a payment
Non-functionalhow well: speed, scale, availability, security, cost
Constraintswhat you can't change: budget, laws, existing systems
Assumptionswhat you believe but haven't confirmed
Fig. 5.1a

Non-functional requirements usually drive architecture. A system serving 100 users and one serving 100 million may have the same features but look nothing alike inside.

Write each requirement so it can be tested: "99.9% of checkouts complete within two seconds at 5,000 orders an hour" rather than "fast".

In practice

Ask for three numbers before any design: how many users, how much data, and how fast.

Questions to ask

Which of your requirements is a number? If none are, the design has nothing to be tested against.

Key terms

Functional requirement: what the system does. Non-functional requirement: how well it does it. Acceptance criteria: tests that show a requirement is met.

Revisit requirements as you learn; they are a living document.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Write requirements as testable numbers.
  • Size for the peak, with headroom.
  • The numbers decide the architecture, not the other way round.

Concepts on this page

Non-functional requirementsAvailability ninesBack-of-envelope estimate
TOPIC 5.2 · INFORMATION SYSTEMS IN DEPTH

Building blocks

The standard parts of almost every large software system, and what each is for.

Animated sceneDiagram3 min read
On the job

Inês felt lost in her developers' architecture diagrams until Rafael gave her a cheat sheet: "Almost every large system uses the same dozen parts. Learn what each is for, and every diagram starts to look familiar."

Idea

Follow one request through the machine.

Client

A tap on a phone.

The app is the client: it shows the interface and sends a request. Good clients retry carefully and never trust their own clock or data for money.

DNS

A name becomes an address.

DNS works like a phone directory: it turns a name such as api.example.com into the address of a server. Answers are cached all over the internet, which is why DNS changes take time to spread.

Load balancer

Spread the work.

Like a host seating guests at free tables, the load balancer sends each request to a healthy server and stops sending to one that fails its health check. It lets you add servers without the client noticing.

App servers

Stateless workers.

Servers run the business logic. Keep them stateless (no memory of past requests stored on the machine) and any server can handle any request; that's what makes horizontal scaling possible.

Cache

Keep hot data close.

A cache keeps frequently read data in memory, like a cook's mise en place. A high hit rate removes most reads from the database. The hard part is knowing when cached data is stale.

Database

The source of truth.

The database stores what must never be lost. Replicas copy it for safety and read capacity; partitioning (sharding) splits it by a key so each machine holds a part.

Queue

Do slow work later.

Notifications, reports and settlement go onto a queue and are handled by workers at their own pace. The queue is a buffer: a stock that absorbs bursts, exactly like the tank in module 2.

Observability

Feedback for machines.

Logs, metrics, traces and alerts close the loop. Without them, the system has no feedback and nobody learns that something is wrong until customers do.

 
Block Job Everyday analogy
Client shows the interface, sends requests the customer
DNS turns names into addresses a phone directory
CDN serves static files from servers near the user local warehouses
Load balancer spreads requests across healthy servers the host seating guests
App servers run business logic; ideally stateless cooks following recipes
Cache keeps hot data in memory the mise en place
Database the durable source of truth the ledger
Queue / stream decouples producers and consumers; absorbs bursts the order-ticket rail
Object storage files, images, backups the store room
Search index fast text search the library catalogue
Observability logs, metrics, traces, alerts the head chef watching the pass
How it works
Userload balancerapp serverscachedatabasequeue for slow workbackground workers
Fig. 5.2aA typical request path through common building blocks.
Remember
  • Almost every system is these blocks in a different arrangement.
  • Stateless servers + shared state elsewhere = easy scaling.
  • Queues and caches are buffers: stocks that absorb variation.

Concepts on this page

Load balancerStateless serverCacheMessage queueCDN
TOPIC 5.3 · INFORMATION SYSTEMS IN DEPTH

Data and storage

Choose how data is stored by how it will be read, written and kept correct.

DiagramLab2 min read
On the job

FreshCrate stored everything in one database: orders, product photos, click logs and invoices. It slowed to a crawl every evening. Rafael asked how each kind of data was used. Photos were read constantly but never changed; logs were written constantly but rarely read. "Different data, different homes," he said.

Idea

Relational databases (PostgreSQL, MySQL) store data in tables with a fixed schema and support transactions with ACID guarantees:

  • Atomicity: all of a transaction happens or none of it.
  • Consistency: rules (constraints) always hold.
  • Isolation: concurrent transactions don't see each other's half-finished work.
  • Durability: once committed, data survives crashes.

NoSQL families trade some of that for scale or flexibility:

Type Model Good for Examples
Key-value key → value sessions, caches, counters Redis, DynamoDB
Document JSON-like documents catalogues, profiles MongoDB
Wide-column rows with many sparse columns huge write-heavy logs, time series Cassandra
Graph nodes and edges social graphs, fraud rings Neo4j

Indexes are sorted lookup structures that make reads fast and writes slower. Index what you query; don't index everything.

Example

A payments ledger needs transactions and strong constraints: relational. A "recently viewed products" list needs fast writes and can lose a little: key-value.

How it works

Choose storage by how data is read, written and kept correct.

Relational databasestables, joins, transactions · orders, payments, accounts
Key–value storesfast lookup by key · sessions, caches, carts
Document storesflexible records · product catalogues, user profiles
Object storagelarge files · photos, videos, backups
Time-series and logsappend-heavy data · metrics, events
Search indexesfind by words · product search
Fig. 5.3a

Money and stock levels usually belong in a relational database with transactions, because they must never be half-updated. Photos belong in object storage, served through a content delivery network.

Indexes make reads fast but writes slower, so add them for the queries you actually run.

In practice

For each type of data, write down how often it's read, how often it's written, how big it is, and what happens if it's briefly wrong.

Questions to ask

What happens if this data is lost, wrong for a minute, or seen by the wrong person? The answers decide where it should live and how it should be protected.

Many systems use several stores at once, a pattern called polyglot persistence. The cost is complexity: more systems to run, back up and keep consistent.

Key terms

Transaction: changes that all happen or none do. Index: a structure that speeds up lookups. Replica: a copy of data on another machine.

Plan backups for each store.

Remember
  • Money and inventory: transactions and constraints.
  • Choose the model by access pattern, not fashion.
  • Every index speeds reads and slows writes.

Concepts on this page

ACID transactionsNoSQLIndex
TOPIC 5.4 · INFORMATION SYSTEMS IN DEPTH

Scaling: replication, partitioning, caching

Three ways to handle more load, each with a catch.

DiagramLab2 min read
On the job

As FreshCrate grew, its single database server reached its limits. One developer wanted to buy a bigger server; another wanted to split the data across many. Rafael asked which would last two years. Bigger hardware bought six months; splitting would take three months to build but would scale for years. They did the first while building the second.

Idea

Vertical scaling: a bigger machine. Simple, but limited and a single point of failure.

Horizontal scaling: more machines behind a load balancer. Needs stateless servers.

Replication: copies of the data on several machines.

  • Leader–follower: writes go to one leader, reads can go to followers. Followers may lag slightly behind (replication lag).
  • Multi-leader and leaderless: writes anywhere; conflicts must be resolved.

Partitioning (sharding): split data by a key so each machine holds a part.

User IDhash(user ID) mod 4Shard 0 · 1 · 2 · 3
Fig. 5.4aPick a key that spreads load evenly and keeps related data together

Watch for hot keys: one celebrity account or one giant merchant can overload its shard.

Caching: keep frequent reads in memory. The two hard problems are invalidation (when is the cached copy stale?) and stampedes (many requests miss at once and hit the database together).

Example

A shop's product catalogue: cache it heavily (it changes rarely). Order placement: send to the leader database; never serve stock levels from a stale cache at checkout.

How it works

There are three main ways to handle more load.

Scale upa bigger machine · simple, but has a ceiling and a single point of failure
Scale outmore machines sharing the work · nearly unlimited, but needs coordination
Do less workcaching, batching, precomputing · often the cheapest fix of all
Fig. 5.4b

Stateless parts, such as web servers that keep no data of their own, are easy to scale out: add more behind a load balancer. Stateful parts, such as databases, are harder: data must be split (sharded) or copied (replicated).

Caching often gives the biggest gain: if 80% of requests ask for the same popular items, serving them from memory removes most of the load.

In practice

Measure where the load actually is before scaling. Often one slow query, not the whole system, is the problem.

Questions to ask

Where is your system's single slowest part under load, and is it stateless or stateful?

Key terms

Stateless: keeps no data between requests. Sharding: splitting data across machines. Load balancer: spreads requests across servers.

Scaling also has human costs: more machines mean more to monitor.

Remember
  • Replicate for safety and reads; partition for writes and size.
  • Choose partition keys that spread load.
  • Cache what is read often and changes rarely.

Concepts on this page

ReplicationPartitioning (sharding)Hot key
TOPIC 5.5 · INFORMATION SYSTEMS IN DEPTH

Communication between services

How parts talk: synchronous calls, asynchronous messages, and the contracts between them.

DiagramLab2 min read
On the job

When a customer paid, FreshCrate's app called the warehouse system, then the van routing system, then the email system, one after another. If email was slow, checkout was slow. Rafael suggested a message queue: checkout records the order and publishes an event; the other systems pick it up in their own time. Checkout got three times faster.

Idea

Synchronous (request–response): the caller waits for an answer. HTTP/REST and gRPC are typical. Simple, but the caller is only as available as everything it calls.

Asynchronous (messages and events): the sender puts a message on a queue or stream and moves on; consumers process it at their own pace. Kafka, RabbitMQ and cloud queues are typical. More resilient to bursts and failures, but harder to reason about (ordering, duplicates, delays).

Order serviceevent: order placedPayment · Inventory · Notifications
Fig. 5.5aOne event, many independent consumers

API contracts are the interfaces of software. Version them, document them, and never break existing callers silently (Hyrum's law: someone depends on every behaviour).

Delivery guarantees for messages:

  • At most once: may be lost, never duplicated.
  • At least once: never lost, may be duplicated, so consumers must be idempotent.
  • Exactly once: expensive; usually built from at-least-once plus idempotency.
How it works

Parts of a system talk in two main styles.

Synchronous: caller askswaitsgets an answercontinues
Fig. 5.5bSimple, but the caller is only as fast and available as the slowest part it calls.
Asynchronous: sender publishes a messagequeue stores itreceivers process when ready
Fig. 5.5cDecoupled and resilient, but results arrive later and ordering needs care.

Contracts matter in both styles: an API specification or message schema says exactly what each side sends and expects, so teams can change their own parts without breaking others.

Idempotency, making repeated messages safe to process twice, is essential, because networks sometimes deliver the same message more than once.

In practice

Call synchronously only when the user must wait for the answer. Everything else can usually happen asynchronously.

Questions to ask

Which calls in your system could fail or be slow, and what does the caller do when they are? Timeouts, retries with backoff, and fallbacks turn surprises into planned behaviour.

Asynchronous systems also need monitoring of queue lengths: a growing queue is an early warning that consumers can't keep up.

Key terms

Synchronous: the caller waits. Asynchronous: the sender moves on. Idempotent: safe to repeat. Schema: the agreed shape of a message.

Document every interface in one shared place.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Use synchronous calls for what the user waits on; messages for the rest.
  • Assume duplicates; design idempotent consumers.
  • Treat APIs as long-lived contracts.

Concepts on this page

Synchronous vs asynchronousIdempotencyAPI contract
TOPIC 5.6 · INFORMATION SYSTEMS IN DEPTH

Consistency and CAP

With data in many places, you choose how fresh every read must be, and what happens when the network splits.

DiagramFlip cardsLab2 min read
On the job

FreshCrate's stock counts were copied to servers in two data centres. During a network glitch between them, both sold the last bag of oranges to different customers. Rafael explained the trade-off: during a split, you choose between refusing some orders and risking selling what you don't have.

Idea

CAP: Eric Brewer proposed in 2000 that a distributed data store can't guarantee Consistency, Availability and Partition tolerance all at once; Seth Gilbert and Nancy Lynch proved a formal version in 2002.

The popular "pick two of three" is misleading. Network partitions will happen, so the real question is: during a partition, do you refuse some requests (stay consistent) or answer with possibly stale data (stay available)? Martin Kleppmann's 2015 critique shows the formal definitions are narrow and often misapplied.

PACELC (Daniel Abadi): if Partitioned, choose A or C; Else, choose Latency or Consistency. Even without failures, waiting for replicas to agree costs time.

 
Data Choice Why
Account balance strong consistency a stale balance can allow double spending
Like count eventual consistency slightly stale is fine
Shopping cart usually available losing a write annoys; refusing a write loses a sale
How it works

The CAP theorem, conjectured by Eric Brewer in 2000 and proved by Seth Gilbert and Nancy Lynch in 2002, says that when a network partition happens, a distributed system must choose between consistency and availability.

Network splitschooseconsistency: refuse requests that can't be confirmedor availability: answer, and risk stale data
Fig. 5.6aThe choice only matters during a partition, but partitions always happen eventually.

In normal operation, the trade-off is between consistency and latency: waiting for every copy to agree makes each write slower.

Many systems mix choices: bank balances and stock levels need strong consistency; likes and view counts can be eventually consistent.

In practice

For each piece of data, ask: what's the cost of showing a slightly old value, and what's the cost of showing an error? Choose accordingly.

Questions to ask

For each piece of data you store in more than one place, would you rather show an error or a slightly old value? Money, stock and bookings usually need the first; counts and feeds can live with the second.

Key terms

Partition: a network split between parts. Strong consistency: every read sees the latest write. Eventual consistency: copies agree after a while. Replica: one copy of the data.

Most cloud databases let you choose the consistency level per query, so the same system can be strict for payments and relaxed for recommendations.

Remember
  • Decide consistency per kind of data.
  • During a partition: consistent or available, choose deliberately.
  • Even in normal times, consistency costs latency.

Concepts on this page

CAP theoremPACELCEventual consistency
TOPIC 5.7 · INFORMATION SYSTEMS IN DEPTH

Performance: load and latency

Why fast systems suddenly become slow, and how much capacity you really need.

DiagramLab2 min read
On the job

FreshCrate's site was fast all week and painfully slow every Sunday evening, when people planned their weekly shop. Average response time looked fine; the slowest 1% of requests took 12 seconds. "Averages hide the pain," Rafael said. "Look at the tail."

Idea

Latency has two parts: service time (doing the work) and waiting time (queueing for a free worker). Near full utilisation, waiting dominates. Try it: push arriving requests up until the curve bends, then add servers or raise the cache hit rate.

Load and latencyWhy systems slow down suddenly

Each server handles 200 requests a second (5 ms each). Cache hits skip the servers. Model: M/M/c queue (random arrivals), Erlang C formula.

–server utilisation
–average response time
–requests that wait

For a single server with random arrivals, average time in the system = service time ÷ (1 − utilisation): 2× the service time at 50% load, 10× at 90%, 100× at 99%. That curve is why engineers keep busy resources well below full and scale before the knee.
 

Measure latency as percentiles, not averages: p50 (median), p95, p99. The slowest 1% often belongs to your most valuable users (big carts, many accounts), and in a page that makes 50 calls, one slow call slows the whole page.

How it works

Performance is measured in latency (how long one request takes) and throughput (how many requests per second).

Average latencyoften misleading
Median (p50)the typical user's experience
p95 and p99the slowest 5% and 1% · where frustration lives
Throughputrequests per second at acceptable latency
Fig. 5.7a

In systems where one page makes many calls, tail latency compounds: if a page needs 100 backend calls, almost every page load hits at least one slow one.

Jeff Dean's famous list of "latency numbers every programmer should know" shows why: reading from memory takes about 100 nanoseconds, a round trip within a data centre about half a millisecond, and a round trip between continents well over 100 milliseconds.

In practice

Track p95 and p99 latency, not just the average, and test at your expected peak, not your normal load.

Questions to ask

What's your p99 latency at peak, and what would users notice first if it doubled?

Key terms

Latency: time for one request. Throughput: requests per second. Percentile: the value below which a given share of requests fall. Tail latency: the slowest requests.

Test performance before launch with realistic data and traffic, not with an empty database.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Keep busy resources well below 100% utilisation.
  • A cache hit is capacity you don't have to buy.
  • Watch p99, not the average.

Concepts on this page

Percentile latency
TOPIC 5.8 · INFORMATION SYSTEMS IN DEPTH

Reliability patterns

Assume every part will fail; design so the system keeps working when it does.

DiagramLab2 min read
On the job

FreshCrate's app went down for four hours when its only database server's disk failed. Rafael asked what their target was. Nobody had one. They agreed: 99.9% availability, about 43 minutes of downtime a month, with a standby database ready to take over within a minute.

Idea
Pattern What it does
Redundancy across zones and regions survive the loss of a machine, rack or data centre
Health checks and failover route around failed parts automatically
Timeouts never wait forever on a slow dependency
Retries with exponential backoff and jitter handle brief failures without a stampede
Idempotency keys make retries safe: a retried payment is charged once
Circuit breakers stop calling a failing service; fail fast instead
Bulkheads isolate resources so one failure can't sink everything
Rate limiting and load shedding protect the system at overload
Backups and restore drills a backup you've never restored is a hope, not a backup
SLOs and error budgets agree a target; spend the remaining budget on change

SLOs and error budgets (popularised by Google's Site Reliability Engineering, 2016): if the target is 99.9% success, the other 0.1% is a budget. While budget remains, ship features; when it is spent, slow down and fix reliability.

RequestTimeout?Retry with backoffCircuit open?Fail fast with a clear message
Fig. 5.8a
How it works

Reliability starts with a target and the budget it implies.

99%about 7 hours down a month
99.9%about 43 minutes a month
99.99%about 4 minutes a month
99.999%about 26 seconds a month
Fig. 5.8b

Each extra nine costs much more: redundancy across data centres, automated failover, careful releases and people on call.

Google's site reliability engineering practice popularised error budgets: if a service is more reliable than its target, the team can release faster; if it's less, releases slow down until reliability recovers.

Backups only count if restores are tested regularly.

In practice

Agree the availability target with the people who pay for it, then design for that number, not for perfection.

Questions to ask

When did you last test a restore from backup or a failover to the standby? Untested recovery plans often fail when they're needed.

Blameless post-incident reviews, which focus on how the system allowed a mistake rather than who made it, help teams learn from outages.

Key terms

Availability: the share of time a system works. Failover: switching to a standby. Error budget: allowed unreliability. Recovery time objective: how fast service must return.

Practise failures on purpose, safely and regularly.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Timeouts everywhere; retries with backoff; idempotency for anything with side-effects.
  • Isolate failures with bulkheads and circuit breakers.
  • Practise restores and failovers before you need them.

Concepts on this page

Circuit breakerBulkheadSLO and error budget
TOPIC 5.9 · INFORMATION SYSTEMS IN DEPTH

Security and observability

Who can do what, how you'd know if something went wrong, and how you'd find out why.

DiagramLab2 min read
On the job

A former FreshCrate contractor still had access to the admin panel months after leaving. Nobody noticed until refunds started appearing on his friends' accounts. Rafael listed what was missing: access removed when people leave, the least access needed for each role, and logs someone actually reads.

Idea

Security by design:

  • Least privilege: every person and service gets only the access it needs.
  • Authentication (who are you?) and authorisation (what may you do?).
  • Encryption in transit (TLS) and at rest.
  • Input validation: never trust data from outside the boundary.
  • Secrets management: keys and passwords out of code.
  • Audit logs of sensitive actions.
  • Threat modelling with STRIDE (Microsoft): Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege.

Observability, the feedback loop of software:

  • Metrics: numbers over time (requests/s, error rate, p99 latency).
  • Logs: records of events.
  • Traces: one request's path through many services.
  • Alerts: on symptoms users feel (errors, latency), not on every internal blip.
Around the world

Data-protection laws make privacy a design requirement: the EU's GDPR (2018), Brazil's LGPD (2020), California's CCPA (2020) and India's Digital Personal Data Protection Act (2023) all set duties for organisations that process personal data.

How it works

Security asks who can do what; observability asks how you'd know, and find out why.

Authenticationproving who you are · passwords, two-step login, passkeys
Authorisationwhat you may do · roles and least privilege
Encryptiondata unreadable to outsiders, in transit and at rest
Logsa record of events
Metricsnumbers over time · errors, latency, load
Tracesthe path of one request through many services
Alertstelling a human when something needs attention
Fig. 5.9a

The principle of least privilege, giving each person and program only the access it needs, limits damage when credentials are stolen.

Good alerts are few and actionable: a team that receives hundreds of alerts a day learns to ignore them.

In practice

Review access when people change roles or leave, and test that your alerts fire by breaking something on purpose in a safe environment.

Questions to ask

Who still has access who shouldn't, and would you know within an hour if someone misused it?

The OWASP Top Ten lists the most common web security risks; checking your system against it is a quick start.

Key terms

Least privilege: the minimum access needed. Two-step login: a second proof of identity. Trace: the path of one request. Alert fatigue: ignoring too many alerts.

Treat security and monitoring as features, planned from the first day.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Least privilege, encryption, validated inputs, managed secrets.
  • Alert on what users feel.
  • If you can't trace a request, you can't debug the system.

Concepts on this page

Least privilegeSTRIDEObservability
TOPIC 5.10 · INFORMATION SYSTEMS IN DEPTH

Worked design: a UPI-style payment system

Every topic in this part, applied to one system end to end.

DiagramLab2 min read
On the job

Inês's last big project of the year was FreshCrate's own payment flow, replacing a provider's hosted page. Rafael made her walk through every part of the course on it: requirements, blocks, storage, consistency, failure and security. "Payments punish every shortcut," he said.

1 · Requirements
  • Pay any bank account from any app using an address (name@bank) or QR code.
  • Money is never created or lost; a payment is never applied twice.
  • Most payments complete within a few seconds; the system works through festival peaks.
  • Scale: ~9,500 transactions per second on average (October 2026 volumes), several times that at peak.
2 · Building blocks
Payer appApp's bank (PSP)Central switchPayer's bank: debitPayee's bank: credit
Fig. 5.10aBanks hold the money; the switch routes, checks and records every step
  • Apps (payment service providers) handle the user experience.
  • The central switch routes requests between banks, checks the rules and records every step.
  • Banks hold accounts and do the actual debits and credits.
  • Settlement between banks happens later, in batches, through the central bank's systems.
3 · Data and consistency
  • Each bank's ledger is strongly consistent and transactional (Topic 5.3).
  • Every payment carries a unique transaction ID used as an idempotency key: a retry with the same ID returns the first result instead of paying twice.
  • Status is a small state machine: initiated → debited → credited → completed, or → reversed. Every transition is logged.
4 · Failure handling
  • If the debit succeeds but the credit times out, the switch doesn't guess: it checks status, and if the credit can't be confirmed, the debit is reversed. Users see "pending" rather than a wrong answer.
  • Timeouts and circuit breakers per bank, so one slow bank doesn't block the whole network (bulkheads).
  • Rate limits protect banks from overload; queues absorb bursts for non-urgent work like notifications.
5 · Feedback

Per-bank success rates and latencies are measured continuously. Publishing them (NPCI publishes monthly statistics, including per-bank figures) is itself a feedback loop: a public information flow that pushes weak links to improve.

How it works

A payment flow touches almost every topic in this part.

Customer payspayment provider authorisesorder recorded with an idempotency keystock reservedconfirmation sentsettlement and reconciliation daily
Fig. 5.10bA simplified payment flow.

The idempotency key ensures that if the network drops and the app retries, the customer isn't charged twice. Daily reconciliation compares the company's records with the provider's, catching anything that went wrong.

Card data should never touch your own servers if you can avoid it: hosted fields from the provider keep you out of the strictest parts of PCI DSS, the card industry's security standard.

Remember
  • Money systems choose consistency over availability.
  • Unique IDs + idempotency make retries safe.
  • When unsure, say "pending" and reconcile; never guess.
TOPIC 5.11 · INFORMATION SYSTEMS IN DEPTH

Worked design: a URL shortener

The classic interview problem, solved with the 10-step method.

DiagramLab2 min read
On the job

A developer candidate at FreshCrate was asked the classic interview question: design a URL shortener. Inês sat in. The candidate jumped to databases in the first minute. Rafael later said the best answers start with the numbers: how many links, how many clicks, how long kept.

1 · Purpose and load

Turn a long link into a short one and redirect anyone who opens it. Assume 100 million new links a month and 10 reads for every write.

  • Writes: 100M ÷ 30 days ÷ 86,400 s ≈ 40 per second.
  • Reads: ≈ 400 per second on average; plan for peaks of several times that.
  • Storage: ~500 bytes per link × 100M × 12 months ≈ 600 GB per year.
2 · Short codes

Base-62 characters (a–z, A–Z, 0–9). Seven characters give 62⁷ ≈ 3.5 trillion codes, plenty. Generate them from a counter (encoded in base 62) or random with a collision check.

3 · Blocks
BrowserLoad balancerApp serversCacheDatabase
Fig. 5.11aReads mostly served from cache; writes go to the database
  • Database: key-value lookup by code; partition by code.
  • Cache: popular links in memory; hit rates are typically high because a few links get most clicks.
  • Redirect: HTTP 301 (permanent, cached by browsers) or 302 (temporary, so you can count every click).
4 · Failure and abuse
  • Rate-limit link creation; scan targets for malware and phishing.
  • Replicate the database; the read path must survive a node loss.
How it works

The estimate shapes every later choice.

Writessay 100 million new links a month, about 40 a second
Readsperhaps 100 clicks per link, about 4,000 a second
Storage100 million links × 500 bytes ≈ 50 GB a month
Code length7 characters from 62 symbols ≈ 3.5 trillion combinations
Fig. 5.11b

Reads far outnumber writes, so caching popular links matters more than fast writes. Short codes can come from a counter converted to base 62, or from random strings checked for collisions.

Redirects use HTTP status 301 (permanent) or 302 (temporary). A 302 keeps every click passing through your servers, which allows click counting.

In practice

State your assumptions aloud and write the numbers down before drawing a single box.

Questions to ask

What happens when a link is deleted, abused for scams or clicked a million times in an hour?

Key terms

Base 62: digits plus upper and lower case letters. Collision: two links getting the same code. Redirect: sending the browser to the long address. Rate limit: capping requests to stop abuse.

The same reasoning applies to many interview problems.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Remember
  • Small write load, large read load: optimise reads.
  • Numbers first, then codes, then blocks.
  • Abuse prevention is part of the design.
TOPIC 5.12 · INFORMATION SYSTEMS IN DEPTH

Checkpoint: Computer system design

Nine questions from requirements to reliability.

Checkpoint2 min read
TOPIC 6.1 · REAL SYSTEMS, READ THROUGH THE COURSE

Indus cities: weights, bricks and drains

A civilisation that standardised its measures and built sanitation into the city plan, c. 2600–1900 BCE.

DiagramLab2 min read
On the job

Rafael's first case study took Inês 4,500 years back, to Harappa and Mohenjo-daro in today's Pakistan and India. "They standardised weights across hundreds of kilometres and built drains into the city plan," he said. "No surviving king's name, but excellent infrastructure."

Purpose

Run large, planned cities and trade over a wide region fairly and hygienically.

The system
  • Weights: cubic chert weights standardised across a vast area. An early analysis found a doubling series for small weights (often given as 1, 2, 4 … 64 times a unit of about 0.856 g) and decimal multiples for larger ones; a later analysis proposes a decimal-based series (Britannica).
  • Bricks: commonly in a 1:2:4 ratio of thickness, width and length.
  • Drains: at Mohenjo-daro nearly every street had brick drains, mostly covered, with removable covers for cleaning and small settling pools that trapped sediment. Houses had bathing areas whose waste water ran through chutes and pipes into the street drains.
Read it as a system
  • Standards as interfaces: any trader's weight matched another's; any builder's brick fitted another's wall.
  • Stocks and flows: waste water was a flow designed into the city from the start, not added later.
  • Maintenance designed in: removable covers and settling pools made cleaning possible.
Lesson to reuse

Standardise the interfaces between strangers, and design maintenance into the structure.

How it works

The Indus civilisation (c. 2600–1900 BCE) is notable for system-wide standards.

Weightscubes of chert in a binary-then-decimal series, consistent across sites
Bricksa common 1:2:4 proportion
City plansgrid streets, separate citadels and lower towns
Sanitationcovered drains and household bathrooms
Sealscarved stamps likely marking goods and ownership
Fig. 6.1a

Its script remains undeciphered, so much of how the system was governed is unknown.

Comparable feats elsewhere include the Roman cloaca maxima sewer and the planned cities of ancient China, but the Indus cities' household-level drainage stands out for its time.

In practice

Shared standards let distant, independent producers fit together without central control, a lesson for any network of suppliers.

Questions to ask

Which standards do your suppliers or teams share, and who checks that they're followed? The Indus cities seem to have kept weights consistent over centuries, which suggests careful, ongoing checking.

Archaeologists still debate how much central control the Indus cities had. The lack of palaces and royal monuments has led some to suggest a more distributed form of governance than in Egypt or Mesopotamia.

Key terms

Chert: a hard stone used for Indus weights. Citadel: a raised, walled area of a city. Undeciphered: a script nobody can yet read. Standardisation: making things the same everywhere.

Many questions about the Indus remain open, which makes it a good reminder that systems can work well even when we can't read their instructions.

TOPIC 6.2 · REAL SYSTEMS, READ THROUGH THE COURSE

Standard time and time zones

How railways forced the world onto shared clocks, and how countries from the US to China and India chose their zones.

DiagramLab2 min read
On the job

Rafael's own career began with railway timetables. "Before railways, every town kept its own sun time," he told Inês. "Trains made that impossible: a timetable needs one clock."

Purpose

Let people and trains across large networks agree on what time it is.

The system

British railways adopted Greenwich time from 1 December 1847. North American railroads switched to standard zones on 18 November 1883; the US made it law in 1918. The International Meridian Conference (Washington, October 1884) recommended Greenwich as longitude 0°. India's standard time is set by 82.5° E, UTC+5:30.

Read it as a system
  • Networks force standards: local solar time was fine until trains connected towns.
  • The private sector moved first; law followed decades later.
  • Standards create winners: France abstained at the 1884 conference and kept Paris time for years.
  • Trade-off: one national time means the east of India gets early sunrises and sunsets on the clock.
Lesson to reuse

When a network connects independent parts, a shared standard becomes unavoidable. Decide who maintains it and accept the trade-offs openly.

How it works

Railways forced the world onto shared time.

  1. 1840sBritain's railways adopt London time, later called railway time
  2. 1880Greenwich Mean Time becomes Britain's legal time
  3. 1883US and Canadian railways adopt four standard time zones
  4. 1884the International Meridian Conference chooses Greenwich as longitude 0
  5. 1906India adopts a standard time on the 82.5° E meridian
  6. 1972Coordinated Universal Time (UTC) as the world's reference
Fig. 6.2a

Each country then chose how many zones to use. Large countries made different choices: the US uses several, China and India one each.

Computers now keep time with atomic clocks and network time protocols, and leap seconds have caused real outages, so international bodies agreed in 2022 to stop adding them by 2035.

In practice

Store times in UTC and convert to local time only for display. It avoids a whole class of bugs.

Questions to ask

Where does your system store times, and in which zone? Mixing local times from different places is a classic source of booking and billing errors.

Daylight-saving changes add another trap: some local times happen twice in autumn and not at all in spring. Storing UTC avoids both problems.

Time is also political: countries change zones and daylight rules with little notice, so software depends on regularly updated time-zone databases, maintained by volunteers as the IANA tz database.

Key terms

UTC: Coordinated Universal Time. Time zone: a region sharing one clock time.

Store UTC; display local time. That single rule prevents most time-related bugs in software, from double-charged subscriptions to missed meetings across time zones.

When designing any system used across places, decide early how it will handle time zones, daylight saving and dates written in different orders, because fixing them later touches every part.

TOPIC 6.3 · REAL SYSTEMS, READ THROUGH THE COURSE

The metric system and SI

Decimal units tied to nature, then to constants of physics.

DiagramLab2 min read
On the job

FreshCrate's Spanish supplier quoted prices per kilo, its British supplier per pound, and its packaging supplier in inches. Inês spent an afternoon converting. Rafael said the French revolutionaries had the same frustration: hundreds of local units, so they designed one system tied to nature.

Purpose

One set of measures for everyone, easy to convert and impossible to fake.

The system

France introduced the metric system in the 1790s; platinum standards for the metre and kilogram were made in 1799. The International System of Units (SI) was adopted in 1960. In 2019, all seven SI base units were redefined from fixed constants of nature; the kilogram now rests on the Planck constant instead of a metal cylinder in Paris.

Read it as a system
  • Decimal encoding: converting between units is moving a decimal point.
  • Reference: first an object, now a constant any well-equipped lab can reproduce.
  • Authority: the BIPM and the General Conference on Weights and Measures maintain it.
  • Adoption is slow: a few countries still use customary units in daily life.
Lesson to reuse

A standard needs a definition, a checkable reference and a maintainer, and adoption takes generations.

How it works

The metric system's power comes from decimals and shared definitions.

  1. 1795France adopts the metre and gram
  2. 1875the Metre Convention: 17 nations create the International Bureau of Weights and Measures
  3. 1960the International System of Units (SI) is named
  4. 1983the metre defined by the speed of light
  5. 2019all base units defined by constants of nature; the kilogram artefact retired
Fig. 6.3a

Because units scale by tens, conversions are simple: 1 kilometre is 1,000 metres; 1 litre of water weighs about 1 kilogram.

The 2019 redefinition means anyone with the right equipment can realise the units anywhere, without comparing against a metal object in Paris.

In practice

Pick one unit system for your data and convert at the edges, where data enters and leaves.

Questions to ask

Where in your system do units change, and is the conversion checked? The Mars Climate Orbiter was lost in 1999 because one team's software used pound-seconds and another expected newton-seconds.

In 1983, an Air Canada Boeing 767, later called the Gimli Glider, ran out of fuel mid-flight after a fuel calculation mixed pounds and kilograms during Canada's metric changeover. The pilots glided it to a safe landing.

Unit mistakes are cheap to prevent: label every number with its unit, and convert in one well-tested place.

Key terms

SI: the International System of Units. Base unit: one of seven units everything else is built from. Unit conversion: changing a value from one unit to another.

Nearly every country now uses SI units in science, and most use them in daily life too.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

TOPIC 6.4 · REAL SYSTEMS, READ THROUGH THE COURSE

The Toyota Production System

Pull, small buffers and stopping the line: lean manufacturing's origin.

DiagramLab2 min read
On the job

Rafael showed Inês a video of a Toyota worker pulling a cord to stop an assembly line over a small defect. Her instinct was horror: stopping production? "Stopping early is cheaper than shipping a fault," Rafael said. "And every stop teaches the system something."

Purpose

Make cars of high quality with little waste, at a time (post-war Japan) when capital and space were scarce.

The system

Developed largely by Taiichi Ohno from the 1950s and described in his book Toyota Production System (1978): just-in-time production, kanban cards signalling the previous step to make more, jidoka (machines and people stop on defects), the andon cord anyone can pull, and kaizen (continuous improvement).

Read it as a system
  • Pull, not push: production is triggered by consumption downstream, which caps work in progress.
  • Small buffers expose problems: with little inventory, any defect or delay is visible at once.
  • Feedback at the source: stopping the line moves information to where the problem is.
  • Goal over parameters: optimise flow and quality, not machine utilisation.
Watch out
  • Copying the tools (kanban boards) without the culture (respect for workers' judgement, real authority to stop the line) usually fails.
Lesson to reuse

Limit work in progress, make problems visible, and give the people closest to the work the power to act.

How it works

The Toyota Production System, developed by Taiichi Ohno and others from the late 1940s, rests on two pillars.

Just-in-timemake only what is needed, when needed · pull with kanban cards
Jidokamachines and people stop when something is wrong
Small buffersproblems show up fast instead of hiding in stock
Kaizencontinuous small improvements by the people doing the work
Go and seemanagers study problems where they happen
Fig. 6.4a

Kanban cards signal when the next step needs more parts, so production is pulled by demand rather than pushed by plans.

The methods spread worldwide as "lean", into hospitals, offices and software development, where Kanban boards now organise work in many teams.

In practice

Make problems visible quickly and give people closest to the work the right to stop and fix them.

Questions to ask

How quickly do problems in your process become visible, and who is allowed to stop work to fix them?

Lean has critics: cutting buffers too far leaves systems fragile, as many supply chains found in 2020–2021. Toyota itself kept larger stocks of some critical chips after the 2011 Japanese earthquake, which helped it during the later chip shortage.

Key terms

Kanban: a card or signal that pulls work. Jidoka: stopping to fix defects. Kaizen: continuous improvement. Andon: the cord or button that signals a problem.

Lean works best when people feel safe reporting problems.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

TOPIC 6.5 · REAL SYSTEMS, READ THROUGH THE COURSE

Mumbai's dabbawalas

Home-cooked lunches delivered across a megacity by a simple code, trains and teamwork.

DiagramLab2 min read
On the job

Rafael's favourite case was Mumbai's dabbawalas, who deliver home-cooked lunches to offices using trains, bicycles and a simple painted code, with very few errors. "No software," he told Inês, "just roles, a code and teamwork. FreshCrate could learn from them."

Purpose

Deliver lunchboxes (dabbas) from homes to offices by lunchtime, and return the empties, every working day.

The system

The service dates to 1890, when Mahadeo Havaji Bachche started it. Estimates vary: commonly 4,500–5,000 dabbawalas moving around 175,000–200,000 lunchboxes a day. Tiffins are collected in the morning, sorted, carried on suburban trains, re-sorted at destination stations and delivered by bicycle, handcart or on foot. Each box is marked with a short code of colours and characters giving its origin station, destination station and building.

Home pickupSort at origin stationLocal trainRe-sort at destinationOffice delivery
Fig. 6.5aThen the same in reverse with the empty boxes
Read it as a system
  • Hierarchical encoding: the lid code is a routing address, like a PIN code.
  • Small autonomous groups: dabbawalas work in groups responsible for their own area, which gives local redundancy.
  • Riding existing infrastructure: Mumbai's suburban rail is the backbone; the timetable sets the rhythm.
  • Simplicity: few steps, few exceptions, the same route every day.
Watch out
  • The famous "one error in 16 million deliveries" and "Six Sigma certified" claims are not from a rigorous study. They trace to a 1998 Forbes article whose author later said Forbes never certified the dabbawalas as Six Sigma; he had extrapolated a leader's remark that mistakes happen "almost never, maybe once every two months". The real lesson is the design, not the statistic.
Lesson to reuse

A clear address code, stable routes and small self-managing teams can scale remarkably far without software.

Around the world

Similar human-powered delivery networks have worked elsewhere: bicycle couriers in many cities, Japan's highly punctual home-delivery services, and community-run mail systems in remote areas. Each relies on clear codes, fixed handover points and small, accountable teams.

How it works

The dabbawalas' system, running since about 1890, relies on a painted code and fixed handovers.

Collect from homesort at local station by codetrain to destination areasort againdeliver to officereturn the empty box the same way
Fig. 6.5bEach tiffin is handled by several people, each knowing only their leg.

The code on each box marks the collection area, the destination station, the building and the floor. Workers don't need to read addresses, only the code for their leg.

Studies in the 2000s described remarkably low error rates, though the often-quoted "six sigma" figure was never formally audited.

Key terms

Handover point: where one worker passes items to the next. Code: a short mark replacing a full address.

Simple codes scale surprisingly far.

TOPIC 6.6 · REAL SYSTEMS, READ THROUGH THE COURSE

Indian Railways

From a 34 km line in 1853 to one of the world's largest networks, and one of its largest booking systems.

DiagramLab2 min read
On the job

Inês took a train from Lisbon to Porto and noticed that her ticket, seat and platform all appeared on her phone within seconds. Rafael said the hardest part was the booking system behind it: "Selling seats on thousands of trains to millions of people, without selling the same seat twice."

Purpose

Move people and goods across a vast country, reliably and affordably.

The system
  1. 16 Apr 1853First passenger train: Bori Bunder to Thane, about 34 km, 14 carriages, about 400 passengers
  2. 1925First electric train: Bombay to Kurla
  3. 1985–86Computerised reservation piloted, then launched, in New Delhi
  4. 1986Centre for Railway Information Systems (CRIS) founded
  5. 2025–26About 741 crore passenger journeys in the year (PIB)
Fig. 6.6a

The Passenger Reservation System (PRS) replaced manual counters, where each station held its own quota and records, with a networked system that can book any train from any counter, and later online.

Read it as a system
  • Infrastructure as stock-and-flow structure: tracks, gauges and stations laid over a century shape today's capacity.
  • Standards: track gauge decides which trains can run where; India's gauge conversion programme exists because of that.
  • Peak load: Tatkal opening times create sudden bursts of demand (Topic 4.6); booking systems must be sized for those minutes, not the daily average.
  • Information flow: PRS turned many separate quotas into one shared inventory of seats.
Lesson to reuse

Physical networks last for generations, so standards chosen early shape everything later. Information systems can multiply the value of physical ones.

Around the world

Railway booking systems are among the largest transaction systems anywhere: Indian Railways sells millions of tickets a day, China's 12306 system handles enormous peaks around the Lunar New Year, and Europe's operators coordinate cross-border bookings. Each must prevent double-selling seats while handling sudden bursts of demand.

How it works

A national railway combines several systems.

Track and signallinginfrastructure that keeps trains apart
Timetablesthe shared plan everyone works to
Rolling stocktrains, maintained on schedules
Bookingselling seats without double-selling
Operations controlresponding to delays and failures
Fig. 6.6b

India's first passenger train ran 34 km from Bori Bunder to Thane on 16 April 1853. The network now carries millions of passengers a day.

Booking systems use transactions to reserve each seat exactly once, and queue requests when demand spikes, such as when popular tickets open for sale.

Questions to ask

Which part of a railway's stack would you improve first to cut delays: signalling, timetables or maintenance?

Key terms

Signalling: the system keeping trains safely apart. Double booking: selling the same seat twice. Peak load: the busiest moment the system must handle.

Railways remain a model of large, safety-critical systems built in layers.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

TOPIC 6.7 · REAL SYSTEMS, READ THROUGH THE COURSE

India Post and PIN codes

Six digits that route mail across 1.4 billion people.

DiagramLab2 min read
On the job

FreshCrate's drivers kept getting lost because customers typed addresses in every possible format. Inês made the postal code mandatory and checked it against the official list. Wrong deliveries fell by half. Rafael said that's exactly why countries invented postal codes.

Purpose

Get any letter or parcel to any address in India, including addresses written by hand and spelled many ways.

The system

India Post traces its modern organisation to 1854. The six-digit Postal Index Number was introduced on 15 August 1972. The first digit is the region, the second the sub-region, the third the sorting district, and the last three the delivery post office.

  • PIN 380001
    • 3 — region (west: Gujarat, Rajasthan and nearby)
      • 38 — sub-region
        • 380 — sorting district (Ahmedabad)
          • 380001 — delivery post office
Fig. 6.7a
Read it as a system
  • Hierarchical encoding: each digit narrows the route, like an IP address or a phone number.
  • Routing without lookup: a sorter needs only the first digits to send mail onward; only the final office needs the full address.
  • Designed for humans: short, numeric, writable by hand, readable by machines.
Lesson to reuse

Encode the routing hierarchy in the address itself; it removes central bottlenecks.

Around the world

Postal codes route mail by narrowing the destination step by step. Germany introduced codes in 1941, the US ZIP code in 1963, the UK's alphanumeric postcodes spread in the 1960s and 70s, and India's six-digit PIN code in 1972. Some countries now add digital address systems: Ghana's GhanaPostGPS (2017) gives every few square metres a code.

How it works

India's PIN code narrows a destination digit by digit.

Digit 1: regiondigit 2: sub-regiondigit 3: sorting districtdigits 4–6: delivery post office
Fig. 6.7bA six-digit PIN code, read left to right.

The system was introduced on 15 August 1972 to handle India's many languages and similarly named places: sorting staff could route mail by number, without reading the address in an unfamiliar script.

Postal codes everywhere follow this idea of hierarchical routing, the same principle internet addresses use to route packets.

Questions to ask

Where in your system could a short code replace free text, making sorting faster and errors rarer?

Key terms

Hierarchical code: each digit narrows the area. Routing: choosing the path to a destination. Sorting office: where mail is grouped by destination. Address validation: checking an address against an official list.

Good codes are short, stable, and checked at the point of entry, so errors are caught before they travel.

The same idea, short hierarchical codes checked at entry, works for product codes, ticket numbers and warehouse locations.

Address systems are a quiet example of a standard that most people never notice until it fails, when parcels go astray or emergency services can't find a home.

Concepts on this page

Hierarchical address
TOPIC 6.8 · REAL SYSTEMS, READ THROUGH THE COURSE

Instant payments: UPI, Pix and others

Real-time payments between any two bank accounts, through any app: interoperability at national scale.

DiagramLab2 min read
On the job

Rafael asked Inês how FreshCrate's customers paid. Mostly cards, some MB WAY, Portugal's mobile payment system. "Look at how instant payment networks are built," he said. "India's UPI and Brazil's Pix let any app pay any bank. That interoperability is a design choice."

Purpose

Let anyone pay anyone instantly, with an address instead of account details, from any app and any bank.

The system

Launched in 2016 and run by NPCI. NPCI data show a record 25.47 billion transactions in October 2026, 23% more than a year earlier: roughly 9,500 a second on average.

Read it as a system
  • One interface, many competitors: any app works with any bank; apps compete on experience, rails are shared.
  • Abstraction: a virtual payment address (name@bank) hides the account number.
  • Reinforcing loop: more users → more merchants with QR codes → more users.
  • Layered stack: identity, payments and data layers each do one job (Topic 3.6).
  • Resilience pressure: at this volume, minutes of downtime fail millions of payments, and one bank's outage shows up as a failed payment in a shop.
Open questions

Concentration (a few apps handle most of the volume), who pays for free rails, and zero fees for most merchant payments are real trade-offs still being debated, not settled facts.

Lesson to reuse

Open, standard interfaces let many players build on one rail; network effects then do the scaling.

Around the world

Many countries have built instant payment systems: the UK's Faster Payments (2008), India's UPI (2016), the EU's SEPA Instant (2017), Brazil's Pix (2020) and the US FedNow (2023). They differ in who owns them, what they cost and how open they are to apps, but all move money between accounts in seconds.

How it works

An instant-payment network separates the apps people use from the banks that hold money.

Customer's appcentral switchcustomer's bank debitsrecipient's bank creditsconfirmation in secondsbanks settle with each other later
Fig. 6.8aThe shared structure of UPI, Pix and similar systems.

Because any licensed app can connect to the switch, customers can choose apps without changing banks, and banks compete on service rather than lock-in.

UPI, run by the National Payments Corporation of India, grew to billions of transactions a month within a few years of its 2016 launch. Brazil's Pix, run by the central bank, grew similarly fast after 2020.

Questions to ask

Which parts of your own system could be opened up through a shared interface, so others can build on them?

Key terms

Interoperability: any app works with any bank. Switch: the central router of payment messages.

Open interfaces turn a system into a platform.

To check your understanding, explain this topic's main idea to a friend in two sentences; if that's hard, reread the How it works section above.

Concepts on this page

InteroperabilityNetwork effect
TOPIC 6.9 · REAL SYSTEMS, READ THROUGH THE COURSE

The internet

A network of networks that agreed on one protocol suite and nothing else.

DiagramLab2 min read
On the job

Rafael's last case was the internet itself. "Thousands of networks, owned by different companies and governments, agreed on just one thing: how to pass packets to each other," he told Inês. "Everything else, from email to video, was built on top by people who didn't need permission."

Purpose

Let computers on very different networks exchange data.

The system
  1. 1969ARPANET connects its first computers
  2. 1974Vint Cerf and Bob Kahn publish the TCP design
  3. 1 Jan 1983"Flag day": ARPANET hosts must switch from NCP to TCP/IP
  4. 1989–91Tim Berners-Lee invents the World Wide Web
  5. 1995VSNL launches public internet access in India (15 August)
Fig. 6.9a

On flag day there were only about 400 hosts on ARPANET, so one coordinated switch was possible. Today's IPv4-to-IPv6 migration can't work that way, which is why it has taken decades.

Read it as a system
  • Layering: each layer (physical link, IP, TCP, applications) does one job and hides its details from the others.
  • End-to-end principle: keep the network simple and put intelligence at the edges (the computers), so new applications don't need network changes.
  • Packet switching: messages are split into packets that can take different routes: resilient to failures.
  • Standards by consensus: the IETF publishes open protocol specifications anyone can implement.
Lesson to reuse

Agree on a minimal common interface and let everything else vary. Migrate early, while the network is small.

How it works

The internet is designed in layers, each relying on the one below.

Applicationsthe web, email, video calls
TransportTCP for reliable streams, UDP for speed
InternetIP addresses and routing between networks
LinkEthernet, Wi-Fi, mobile, fibre
Fig. 6.9b

The end-to-end principle, described by Saltzer, Reed and Clark in 1984, keeps the network simple and puts intelligence at the edges, in the devices. That's why new applications can appear without changing the network.

ARPANET switched to TCP/IP on 1 January 1983, often called the internet's birthday. Vint Cerf and Bob Kahn designed the protocols.

In practice

Design interfaces that are simple and stable, and let innovation happen on top of them.

Questions to ask

What's the one interface everything in your system depends on, and how stable is it?

Key terms

Packet: a small chunk of data with an address. Protocol: rules for communicating. TCP/IP: the internet's core protocol suite. End-to-end principle: keep the network simple, put intelligence at the edges.

The internet has no single owner: standards are developed openly through bodies such as the Internet Engineering Task Force.

Its openness is also its weakness: spam, attacks and misinformation travel as easily as useful data.

Understanding these layers helps diagnose problems: a broken website might be a fault in the application, the network, or simply a failed Wi-Fi link.

Concepts on this page

End-to-end principle
TOPIC 6.10 · REAL SYSTEMS, READ THROUGH THE COURSE

Checkpoint: Case studies

Nine questions on real systems.

Checkpoint2 min read
TOPIC 7.1 · TOOLS TO USE ON REAL WORK

System design canvas

The 10-step method as a worksheet. Fill it in for any system; it saves in this browser and copies out as Markdown.

Lab2 min read
System design canvasTen steps, saved in this browser
How to use it
  • Start with step 1 and refuse to move on until it has a number in it.
  • Fill steps 3–5 with rough estimates; precision comes later.
  • Step 8 is where most designs are weakest. Write at least one failure per building block.
  • Press "Fill with an example" to see a complete worked canvas for a tiffin-delivery service.
TOPIC 7.2 · TOOLS TO USE ON REAL WORK

How to write a case study

Seven questions that turn any system you meet into a lesson.

2 min read
The seven questions
  1. Purpose by behaviour: what does it actually do, for whom?
  2. Stocks and flows: what piles up, and what fills and drains it?
  3. Feedback loops: which loops dominate, and where are the delays?
  4. Standards and interfaces: where do independent parts meet, and what makes them fit?
  5. Bottlenecks and failures: what limits it, and how has it broken?
  6. Scale: what changed as it grew?
  7. Lesson: one idea you can reuse elsewhere.
Good sources, in order

Primary records (government data, company filings, original papers) → reputable reference works and academic books → serious journalism → everything else. Mark claims you couldn't verify, as Case 6.5 does with the dabbawala error rate.

Try it

Pick a system you use this week (your gym, a ration shop, a hospital OPD, a delivery app) and answer the seven questions in one page.

TOPIC 7.3 · TOOLS TO USE ON REAL WORK

Study plan and paths

Three routes through the course, and a four-week plan.

2 min read
Four-week plan
Week Read Do
1 Part 1 (Foundations) Map one system you use daily: elements, links, purpose, boundary, one loop
2 Part 2 (The human story) and Part 3 (Families) Pick one era and one family; write a one-page case with the seven questions
3 Part 4 (Designing any system) Fill the System design canvas for a small real system
4 Part 5 (Computer systems) and Part 6 (Cases) Do the URL-shortener design yourself, then compare with Topic 5.11
Books to go further
  • Donella Meadows, Thinking in Systems (2008): the best single introduction.
  • Peter Senge, The Fifth Discipline (1990): archetypes and learning organisations.
  • Eliyahu Goldratt, The Goal (1984): the theory of constraints, as a novel.
  • Martin Kleppmann, Designing Data-Intensive Applications (2017): data systems in depth.
  • John Gall, Systemantics (1975): short, funny and true.
TOPIC 7.4 · TOOLS TO USE ON REAL WORK

Glossary

Every concept in the course, with where it is taught.

8 min read
10-step methodPurpose to "start simple".4.8 The 10-step methodAbstractionNumber signs separate from thing signs.2.2 Era 2 · RecordingACID transactionsAtomic, consistent, isolated, durable.5.3 Data and storageAPI contractThe interface other software depends on.5.5 Communication between servicesAvailability nines99.9% ≈ 8.8 hours of downtime a year.5.1 Requirements and numbersBack-of-envelope estimateRough numbers that decide the design.5.1 Requirements and numbersBalancing loopA loop that corrects toward a goal.1.4 Feedback loopsBase 60Babylonian counting surviving in minutes and degrees.2.3 Era 3 · NumberBathtub ruleA stock rises when inflow exceeds outflow; only flows change it.1.3 Stocks and flowsBehaviour over timeA sketch of key numbers over months or years.1.6 Behaviour patterns and archetypesBinary weightsDoubling weights balance every whole amount.2.3 Era 3 · NumberBottleneckThe slowest step, which sets total output.2.9 Era 9 · ProductionBoundaryThe line between a system and its environment.1.2 Boundaries and environmentsBrooks's lawAdding people to a late software project makes it later.4.2 Laws of systemsBulkheadIsolate resources so one failure can't sink all.5.8 Reliability patternsBureaucracyRule-bound, written, impersonal administration (Weber).2.5 Era 5 · Rules and powerCacheHot data kept in memory.5.2 Building blocksCAP theoremDuring a partition, choose consistency or availability.5.6 Consistency and CAPCascading failureOverload spreading from part to part.4.7 How systems failCausal loop diagramVariables, + and − arrows, R and B loops.4.3 Systems thinking toolsCDNStatic files served from near the user.5.2 Building blocksChecks and balancesDesigns where no single part can dominate.2.5 Era 5 · Rules and powerCircuit breakerStop calling a failing service; fail fast.5.8 Reliability patternsClassificationNested categories that organise knowledge.2.6 Era 6 · KnowledgeClay tokensShapes standing for goods, the ancestors of writing.2.2 Era 2 · RecordingCoinageStamped metal anyone can check.2.7 Era 7 · Value and tradeConway's lawSystems mirror the organisation that builds them.3.5 Organisational systemsCyberneticsControl and communication through feedback.2.10 Era 10 · Information and controlDelayTime between action and visible result.1.5 Delays and oscillationDesign thinkingEmpathise, define, ideate, prototype, test.4.5 Design thinking and service designDesign tokensNamed, shared values for colour, type and spacing.3.7 Design and standard systemsDouble-entry bookkeepingEvery transaction as an equal debit and credit.2.7 Era 7 · Value and tradeDynamic equilibriumEqual flows hold a stock steady while things keep moving.1.3 Stocks and flowsElementA part of a system; easiest to see, least important.1.1 What a system isEmergenceProperties of the whole that no part has.1.7 Emergence, hierarchy and resilienceEncodingHow information is written; decides the effort to use it.2.3 Era 3 · NumberEnd-to-end principleKeep the network simple; put intelligence at the edges.6.9 The internetEngineered trustStandards, redundancy, intermediaries, audits.2.7 Era 7 · Value and tradeEventual consistencyCopies converge over time.5.6 Consistency and CAPExternalised memoryStoring information outside the brain.2.1 Era 1 · CountingFamilies of systemsNatural, symbolic, economic, infrastructure, organisational, information, design.3.0 The map of familiesFeedback loopA chain of cause and effect that returns to its start.1.4 Feedback loopsFive system movesExternalise, abstract, standardise, coordinate, automate.2.0 The ten eras at a glanceFlowA rate that fills or drains a stock.1.3 Stocks and flowsGall's lawWorking complex systems evolve from simple working ones.4.2 Laws of systemsGoodhart's lawA measure that becomes a target stops measuring well.4.2 Laws of systemsHierarchical addressA code where each part narrows the route.6.7 India Post and PIN codesHierarchySystems nested inside systems.1.7 Emergence, hierarchy and resilienceHomeostasisBalancing loops holding conditions steady.3.1 Natural systemsHot keyOne key that overloads its partition.5.4 Scaling: replication, partitioning, cachingHundiA written order to pay across a merchant network.2.7 Era 7 · Value and tradeIceberg modelEvents, patterns, structures, mental models.4.3 Systems thinking toolsIdempotencyDoing it twice has the effect of doing it once.5.5 Communication between servicesIncentivesWhat people are rewarded for, and so what they do.3.3 Economic systemsIndexA sorted lookup that speeds reads, slows writes.5.3 Data and storageIndian Standard TimeUTC+5:30, set by 82.5° E.2.4 Era 4 · TimeInertiaStocks change only as fast as flows allow.1.3 Stocks and flowsInformation flowWho knows what, when: a cheap, strong lever.1.8 Leverage pointsInformation theoryInformation measured in bits (Shannon, 1948).2.10 Era 10 · Information and controlInputs and outputsWhat crosses the boundary in and out.1.2 Boundaries and environmentsInterchangeable partsAny part fits any copy.2.9 Era 9 · ProductionInterconnectionThe relationships and flows holding parts together.1.1 What a system isInteroperabilityAny app works with any bank through one interface.6.8 Instant payments: UPI, Pix and othersJidokaStop the line when something is wrong.2.9 Era 9 · ProductionKanbanA signal that authorises making more.2.9 Era 9 · ProductionLeast privilegeOnly the access each part needs.5.9 Security and observabilityLeverage pointsTwelve places to intervene, from parameters to paradigms.1.8 Leverage pointsLittle's lawL = λW: items inside = arrival rate × time inside.4.6 Flow, queues and Little's lawLoad balancerSpreads requests across healthy servers.5.2 Building blocksLoop dominanceWhich loop is in charge right now.1.4 Feedback loopsMaintenanceThe hidden majority of infrastructure cost.3.4 Infrastructure systemsMessage queueA buffer between fast and slow work.5.2 Building blocksModularityParts that change independently.4.1 Twelve universal principlesNetwork effectEach new user adds value for others.6.8 Instant payments: UPI, Pix and othersNon-functional requirementsHow well: latency, availability, cost.5.1 Requirements and numbersNormal accidentsSmall faults combining in tightly coupled systems.4.7 How systems failNormalisation of devianceSmall deviations slowly becoming normal.4.7 How systems failNoSQLKey-value, document, wide-column and graph stores.5.3 Data and storageObservabilityMetrics, logs, traces and alerts.5.9 Security and observabilityOpen systemA system that depends on flows across its boundary.1.2 Boundaries and environmentsOscillationSwinging around a goal: a balancing loop with a delay.1.5 Delays and oscillationPACELCElse, trade latency against consistency.5.6 Consistency and CAPParadigmThe shared beliefs a system arises from.1.8 Leverage pointsPartitioning (sharding)Splitting data by key across machines.5.4 Scaling: replication, partitioning, cachingPercentile latencyp50, p95, p99: how slow the slow requests are.5.7 Performance: load and latencyPlace valueA digit's value depends on its position.2.3 Era 3 · NumberPrices as informationPrices signal scarcity to buyers and sellers.3.3 Economic systemsPrime meridianLongitude 0°, Greenwich, chosen in 1884.2.4 Era 4 · TimeProtocolThe agreed rules that let different systems talk.3.6 Information systemsPublic digital infrastructureShared rails such as Aadhaar and UPI.3.6 Information systemsPurposeWhat a system actually does, read from behaviour.1.1 What a system isPush vs pullProduce flat out, or only what the next step uses.2.9 Era 9 · ProductionRedundancyNo single point of failure.4.1 Twelve universal principlesReinforcing loopA loop that amplifies itself: growth or collapse.1.4 Feedback loopsReplicationCopies of data for safety and reads.5.4 Scaling: replication, partitioning, cachingRequirementsWritten, testable statements of need.4.4 Systems engineeringRequisite varietyA controller needs as many responses as disturbances.2.10 Era 10 · Information and controlResilienceThe ability to absorb shocks and keep working.1.7 Emergence, hierarchy and resilienceS-shaped growthGrowth meeting a limit and levelling off.1.6 Behaviour patterns and archetypesScientific methodKnowledge with built-in error correction.2.6 Era 6 · KnowledgeSelf-organisationA system changing its own structure.1.7 Emergence, hierarchy and resilienceService blueprintCustomer, frontstage, backstage and support systems.4.5 Design thinking and service designShared agreementWhat gives symbolic systems their power.3.2 Symbolic systemsSI unitsUnits defined by constants of nature since 2019.2.8 Era 8 · StandardsSingle point of failureOne part whose failure stops everything.4.7 How systems failSLO and error budgetA reliability target and the room it leaves for change.5.8 Reliability patternsSolar timeNoon when the sun is highest over you.2.4 Era 4 · TimeStandardA definition, a checkable reference and a maintainer.2.8 Era 8 · StandardsStandard timeOne clock per zone, created for railways.2.4 Era 4 · TimeStateless serverAny server can handle any request.5.2 Building blocksStockAnything that accumulates and can be counted at a moment.1.3 Stocks and flowsSTRIDEA checklist of six kinds of threat.5.9 Security and observabilitySwiss-cheese modelDisasters happen when holes in defences line up.4.7 How systems failSynchronous vs asynchronousWait for an answer, or send a message and move on.5.5 Communication between servicesSystem archetypesRecurring structures such as fixes that fail.1.6 Behaviour patterns and archetypesSystem stackSystems depend on layers of other systems.3.0 The map of familiesTally stickNotched wood split between creditor and debtor.2.1 Era 1 · CountingTheory of constraintsImprove the bottleneck; elsewhere is an illusion.2.9 Era 9 · ProductionTragedy of the commonsShared resources overused until they collapse.1.6 Behaviour patterns and archetypesTrial balanceTotal debits must equal total credits.2.7 Era 7 · Value and tradeUniversal principlesTwelve things good systems share.4.1 Twelve universal principlesUtilisationBusy time ÷ capacity; waiting explodes near 100%.4.6 Flow, queues and Little's lawV-modelDesign down the left, verification up the right.4.4 Systems engineeringVerification and validationBuilt right; built the right thing.4.4 Systems engineeringWritten lawPublic, fixed rules strangers can predict.2.5 Era 5 · Rules and powerZeroA mark for an empty place that became a number.2.3 Era 3 · Number
TOPIC 7.5 · TOOLS TO USE ON REAL WORK

Sources

The research behind the course.

2 min read
Systems thinking
  • Donella Meadows, Thinking in Systems (2008); "Leverage Points: Places to Intervene in a System" (1997/1999).
  • Peter Senge, The Fifth Discipline (1990). Jay Forrester, Industrial Dynamics (1961). Ludwig von Bertalanffy, General System Theory (1968). Herbert Simon, "The Architecture of Complexity" (1962).
History
  • Lebombo and Ishango bones: radiocarbon dating of Border Cave; Bruderer, Communications of the ACM, on the Ishango interpretations.
  • Denise Schmandt-Besserat, Before Writing (1992).
  • Bodleian Libraries, University of Oxford (2017), carbon dating of the Bakhshali manuscript; Brahmagupta, Brāhmasphuṭasiddhānta (628 CE).
  • Encyclopaedia Britannica on Indus weights and measures; harappa.com and Possehl (2002) on Mohenjo-daro's drains.
  • Standard time: railway history (1847, 1883); International Meridian Conference (1884); NIST; timeanddate.com.
  • BIPM on the 2019 SI redefinition. India Post on the PIN code system (1972).
  • Luca Pacioli (1494). F. W. Taylor (1911). Taiichi Ohno (1978). Eliyahu Goldratt (1984). John Little (1961).
  • Claude Shannon (1948). Norbert Wiener, Cybernetics (1948). W. Ross Ashby (1956). Internet Society and Vint Cerf on the 1 January 1983 TCP/IP cutover.
  • Kallanai / Grand Anicut: Wikipedia and the Institution of Civil Engineers on its history and 19th-century remodelling.
  • Dabbawalas: Wikipedia's account of the 1998 Forbes article and its author's later clarification.
  • Indian Railways: PIB (April and August 2026) on the 1853 first train, 2025–26 passenger journeys and the PRS; CRIS history.
  • UIDAI on the first Aadhaar number (29 September 2010).
Design and engineering
  • John Gall (1975). Melvin Conway (1968). Charles Goodhart (1975). Fred Brooks, The Mythical Man-Month (1975). Charles Perrow, Normal Accidents (1984). Diane Vaughan, The Challenger Launch Decision (1996). James Reason, Human Error (1990).
  • ISO/IEC/IEEE 15288 (systems engineering life-cycle processes).
Computer systems
  • Gilbert and Lynch (2002); Brewer, "CAP twelve years later" (2012); Kleppmann (2015, 2017); Abadi (2012) on PACELC.
  • Google, Site Reliability Engineering (2016). Microsoft's STRIDE threat model.
  • NPCI UPI statistics for October 2026, as reported in the press. Digital Personal Data Protection Act, 2023.
Blueprint/Part 1
Part 1 · How any system works

Foundations

Before history or software, learn the grammar every system shares: parts, links, purpose, boundaries, stocks, flows, feedback and leverage. These eight topics are the lens for everything after them.

By the end of this part you can

Describe any system by its elements, interconnections and purpose
Draw a boundary and name what crosses it
Read a situation as stocks and flows
Spot balancing and reinforcing loops, and the delays that make systems swing
Name the common traps (archetypes)
Choose where to intervene for the most effect
Start with 1.1 →9 topics, in order
Blueprint/Part 2
Part 2 · 40,000 years of systems

The human story

Ten eras, in order. Each one solved a problem the previous era created, and each still runs underneath what we use today. Every era page follows the same frame: the problem, the systems people built, the people and dates, the India thread, and the lesson for designers.

By the end of this part you can

Tell the story of human systems from tally bones to the internet
Explain why each era's invention was needed
Connect ancient systems to the ones you use today
Name the five moves that repeat across history
Start with 2.0 →12 topics, in order
Blueprint/Part 3
Part 3 · Categories and sub-categories

Families of systems

Every system belongs to at least one family. The family tells you which forces drive it (physics, meaning, incentives, engineering, roles, data, consistency) and so which design tools will work. Seven families, each split into sub-categories, then how they stack.

By the end of this part you can

Place any system in one or more families
Name the sub-categories inside each family
Pick design tools that match the forces at work
Trace a modern system down through the stack of families it depends on
Start with 3.0 →9 topics, in order
Blueprint/Part 4
Part 4 · Principles, laws, methods

Designing any system

The same principles hold for a kitchen, a company, a city's water supply or a software platform. This part moves from principles (what good systems share) to laws (what keeps happening) to methods (how to actually design) to failure (how it goes wrong) and ends with a 10-step method you can use tomorrow.

By the end of this part you can

Apply twelve universal principles to any system
Recognise the classic laws of systems in real projects
Use systems thinking, systems engineering and design thinking at the right moments
Size a queue with Little's law
Anticipate common failure modes
Design a system in ten steps
Start with 4.1 →9 topics, in order
Blueprint/Part 5
Part 5 · Information systems in depth

Computer system design

Software follows every principle of Part 4, with its own building blocks and trade-offs. The order here is the order you design in: numbers first, then blocks, data, scale, communication, consistency, performance, reliability and security, then two complete worked designs.

By the end of this part you can

Turn a product idea into requirements and numbers
Name the standard building blocks and what each is for
Choose storage, replication and partitioning
Reason about consistency and CAP
Predict latency under load
Add reliability and security patterns
Walk through a full design end to end
Start with 5.1 →12 topics, in order
Blueprint/Part 6
Part 6 · Real systems, read through the course

Case studies

Nine real systems, ancient and modern, each read with the same seven questions: purpose, stocks and flows, loops, standards and interfaces, bottlenecks and failures, what changed at scale, and the lesson to reuse.

By the end of this part you can

Analyse any real system with a fixed set of questions
See the same principles at work across 4,500 years
Separate documented facts from popular myths
Start with 6.1 →10 topics, in order
Blueprint/Part 7
Part 7 · Tools to use on real work

Studio

Everything in this part is for doing: a design canvas that saves in your browser, a template for writing your own case studies, a four-week study plan with three reading paths, a glossary of every concept, and the sources behind every claim.

By the end of this part you can

Design a real system on the canvas
Write your own case study
Follow a study plan that suits your goal
Look up any concept quickly
Start with 7.1 →5 topics, in order