Skip to content
About
Main content
The Machine

Physical Substrate & Performance Laws

Why do trade-offs exist at all?

Who this mechanism is for: a developer who writes code, calls APIs and knows basic SQL, but has never studied how a disk, a CPU cache or a network really behaves. You do not need any database knowledge. Every technical term is explained the first time it appears, and again in the glossary at the end.

The story we will follow

Meera is a backend engineer at Streamly, a small company that sells a dashboard product. Customers send click-events (who clicked what, and when). Streamly stores these events and lets customers ask questions such as "how many users from India clicked Buy last week?"

Streamly launches next month. During the launch period Meera will meet five problems, one at the start of each article below. Each problem looks like a bug. Each one is actually a law of physics or mathematics. At the end of each article, we go back and solve her problem.

This is the main idea of this whole mechanism:

How this mechanism is organized

After that: a summary, hands-on labs, interview questions and a glossary.

One request: do not skip the numbers. This mechanism quotes many figures ("80 µs", "64 bytes"). The ratios between them are the real content.

Can I see it myself?

Can I reason about it under questioning?

Trade-offs

The tensions this mechanism takes a position on. Each recurs across mechanisms.

Show all 7 trade-offs
Recurring principles

Ideas this mechanism meets that keep coming back, mechanism after mechanism.