LOAD-BEARINGfree
FoundationsTier 0 · unit 1 of 5 · 10 min read

Anatomy of a click

Somebody taps a button on their phone. Roughly 200 milliseconds later, the screen changes. That tiny gap — a fifth of a second — is where every single thing in this course lives. So before we learn any fancy words, let's slow that gap down and watch what actually happens inside it, step by step.

Step 1 — Resolve: turning a name into an address

Your phone wants to talk to api.example.com, but the internet doesn't deliver messages to names. It delivers them to IP addresses — numbers like 142.250.71.78. Think of it like calling a friend: you know their name, but your phone needs their number. The system that converts names to numbers is called DNS (Domain Name System). It's basically a giant, distributed phone book that the whole internet shares.

Step 2 — Connect: shaking hands before talking

Now your phone knows the address, but it can't just start shouting data. First it opens a TCP connection — think of it as both sides saying "can you hear me?" "yes, can you hear me?" "yes" before the real conversation starts. Then TLS kicks in: the two sides agree on a secret code so nobody in the middle can read the messages (that's the padlock in your browser). These handshakes cost two to three full round trips across the internet before a single useful byte moves. Remember that — it comes back to haunt us in Tier 1.

Step 3 — Route: picking a server

Your request arrives at the company's front door and meets a load balancer. Big services don't run on one computer; they run on dozens or thousands of identical ones. The load balancer is like the person at a busy restaurant entrance who looks at all the counters and says "you — go to counter 7, it's free." It spreads work evenly and, crucially, stops sending people to a counter that's broken.

Step 4 — Compute: your code finally runs

The chosen server runs the application code: check who this user is (authentication), check they're allowed to do this (authorisation), figure out what data they need.

Step 5 — Fetch: getting the data

The data lives somewhere. If you're smart, the server checks a cache first — a small, extremely fast memory that keeps copies of recently-used answers, like keeping your most-used apps on your home screen instead of digging through settings every time. If the cache doesn't have it (a "miss"), the server asks the database — slower, but it has everything.

Step 6 — Return: sending it back

The answer is packaged up (serialised), squeezed smaller (compressed), and shipped back down the same connection. Screen changes. Done.

Why this six-step list matters so much

Here's the secret that makes system design suddenly make sense: every fancy component you will ever hear about is just an attack on one of these six steps.

  • A cache attacks step 5 (Fetch) — "stop asking the slow database for the same answer over and over."
  • A CDN attacks step 3 (Route) — "move the server physically closer to the user so the trip is shorter."
  • A queue attacks step 4 (Compute) — "don't do this work right now; write it down and do it in a moment."
  • Sharding attacks step 5 again — "the data got too big for one machine, so split it across several."

When someone shows you an architecture diagram with fifteen boxes, don't panic. Ask of each box: which step is this speeding up, and what did it cost?

The only real question

System design is not "which technologies do I like." It is: where does this system break first, and what does fixing that break cost me? And cost is never just money. It's latency (things get slower elsewhere), consistency (data can briefly disagree with itself), operational pain (more things to monitor), and human cost (more engineers who must understand the thing when it breaks at 3am).

The trap

Beginners add components because they've heard of them. "Let's add Kafka" sounds impressive, but every box you add is a box that can fail, needs monitoring, and needs someone to wake up for. A single server talking to a single database is a completely legitimate architecture — genuinely, many profitable companies run on exactly that — until you can name the specific number that broke it. "It feels small" is not a reason to make it bigger.