System Design foundations
7 connected chapters before the System Design course. Start at the beginning or use the placement check.
5-question placement check
Try explaining each answer before opening it. This is a self-check, not a certification.
What is the difference between latency and throughput?
Latency measures elapsed time per request. Throughput measures completed requests per unit time. A queue can increase waiting without increasing useful completion capacity.
At 200 accepted requests/s and 0.1 seconds average response time in a stable system, how many requests are in flight?
L = λ × W = 200 × 0.1 = 20 on average. Use the same boundary for arrival rate, latency and inventory.
Why can an index help reads while making writes more expensive?
The index narrows lookup work, but inserts and relevant updates must also maintain that extra structure and its storage.
A payment request times out. What do you know about whether it executed?
Only that the caller did not receive the expected response before its deadline. The remote action may have committed; preserve identity and reconcile.
How much unavailable time does 99.9% allow in a thirty-day month?
30 × 24 × 60 = 43,200 minutes; 0.1% = 0.001; 43,200 × 0.001 = 43.2 minutes. This is a time-based budget.
What Happens When You Open a Web Page: DNS, TCP, TLS, and HTTP
Trace a browser request through name lookup, connection setup, encryption and an HTTP response; calculate where the waiting time goes.
~6 min reading · ~17 min with practice
Numbers Every Engineer Should Know: Units, Latency, and Back-of-the-Envelope Math
Convert workload and storage quantities into rates and capacity estimates, keeping units, peaks and assumptions visible.
~6 min reading · ~17 min with practice
Databases in Ten Minutes: Tables, Indexes, and Transactions
Explain rows, keys, joins, indexes and transaction boundaries, then choose a data model from the questions an application asks.
~6 min reading · ~17 min with practice
Servers, Threads, and Waiting: Concurrency and Little’s Law
Distinguish concurrency from parallel execution and use arrival rate and response time to reason about in-flight work.
~6 min reading · ~17 min with practice
Memory, Disk, and Network: Why Caches Exist
Explain locality and cache hit ratio, calculate a weighted latency estimate and identify when storing another copy is useful.
~6 min reading · ~17 min with practice
When Things Fail: Timeouts, Retries, and Availability Math
Treat lost responses as uncertain outcomes, reason about repeated actions and calculate availability under explicit failure assumptions.
~6 min reading · ~17 min with practice
Reading Architecture Diagrams and Trade-off Vocabulary
Read boxes and arrows as explicit boundaries, identify missing assumptions and explain the first failure a diagram leaves unresolved.
~7 min reading · ~18 min with practice