Core Foundations · 9 min read · Intermediate
Scalability, Latency & Back-of-the-Envelope Math
Learn vertical vs horizontal scaling, throughput (QPS), p95/p99 tail latency, and quick capacity estimation.
What you'll learn
- Differentiate vertical scaling (bigger box) from horizontal scaling (more nodes)
- Estimate QPS, peak traffic, and 5-year storage budgets
- Understand why p99 latency matters more than averages
Overview
Learn vertical vs horizontal scaling, throughput (QPS), p95/p99 tail latency, and quick capacity estimation.
Great system design is about explicit trade-offs rather than memorizing buzzwords. Every architectural layer you add (caches, replicas, queues, shards) solves one bottleneck while introducing new operational failure modes.
Design Checklist
| Dimension | Questions to Ask |
|---|---|
| Traffic & Scale | What is the read-to-write ratio, peak QPS, and payload size? |
| Consistency | Can users tolerate eventual consistency for a few seconds, or do we need strict ACID? |
| Failure Modes | What happens if a cache node, replica, or downstream API times out? |
| Simplicity | Can a single well-indexed PostgreSQL instance handle the next 12 months of growth? |
Key Takeaways
- Differentiate vertical scaling (bigger box) from horizontal scaling (more nodes)
- Estimate QPS, peak traffic, and 5-year storage budgets
- Understand why p99 latency matters more than averages
Quick Check
Check Your Understanding
Score: 0 / 1
1. Why do engineers track p99 latency instead of relying solely on average latency?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.