- Learn
- High Level System Design
- Core Concepts and Back-of-the-Envelope Math
HLD-M02
Core Concepts and Back-of-the-Envelope Math
The vocabulary and arithmetic of every design discussion: percentiles, nines, SLOs, quick estimates, scaling up versus out, state, and naming trade-offs.
Design reviews and interviews run on a shared vocabulary. Is the p99 under 200 ms? How many nines does this dependency chain allow? How many requests per second at peak, and how many terabytes after five years? Can any server handle any request, or are users stuck to one machine? What are we giving up by choosing this?
This module gives you that vocabulary and the arithmetic behind it. You will see why averages hide pain and how fan-out multiplies tail latency, compute availability for chains and redundant copies, use error budgets to decide when to ship, estimate a Twitter-sized system on the back of an envelope, and learn the trade-offs that every later lesson keeps returning to.
Lessons
- HLD-02.01 Latency vs throughput, and why percentiles matter Latency is how long one request takes; throughput is how many requests you finish per second. Beginner 10 min
- HLD-02.02 Availability, reliability and the "nines" Availability is the fraction of time a system works, often written in nines: 99.9 percent allows about 8.8 hours of downtime a year, 99.99 percent about 53 minutes. Beginner 10 min
- HLD-02.03 SLIs, SLOs, SLAs and error budgets An SLI is a measured indicator such as the share of requests that succeed within 300 ms. Intermediate 10 min
- HLD-02.04 Back-of-the-envelope estimation Back-of-the-envelope math turns vague scale into concrete numbers. Beginner 18 min
- HLD-02.05 Vertical vs horizontal scaling Vertical scaling means buying a bigger machine: simple, but it hits a ceiling and leaves a single point of failure. Beginner 8 min
- HLD-02.06 Stateless vs stateful services State is data a server remembers between requests, such as a login session. Beginner 10 min
- HLD-02.07 The core trade-offs map Every design decision gives something up. Intermediate 10 min