Hello! Welcome to the third lesson in our System Design module.
In our previous lesson, we focused on the crucial first step of a system design interview: gathering functional and non-functional requirements. We established that for a Staff-level role, it's not enough to say a system needs to be "scalable" or "fast"; you must begin to quantify those qualities.
Today, we'll take the next logical step. Our learning outcome is to perform back-of-the-envelope estimations for throughput, storage, and bandwidth. This skill is what allows you to translate ambiguous requirements like "high traffic" into concrete numbers that will anchor your entire design and justify your architectural trade-offs.
1. The Purpose and Timing of Estimation
For a Staff-level candidate, it's important to demonstrate not just how to do something, but why and when. A common trap is to jump into complex calculations at the beginning of the interview without a clear purpose. This can waste valuable time. The senior-level approach is to perform estimations strategically, precisely when the results will drive a key architectural decision.
Let's start with a crucial piece of advice on this from an ex-Meta Staff Engineer.
Design Uber w/ a Ex-Meta Staff Engineer: System Design Interview breakdown
This clip from a mock interview for designing Uber provides a Staff-level perspective on when to perform estimations. The key insight is that estimations should directly influence your design, not just be a checkbox exercise.
Watch the segment from 00:10:16 to 00:12:07. Pay close attention to the speaker's argument for delaying estimation until it serves a specific purpose in the high-level design. Note the script he suggests for communicating this strategy to the interviewer—it's a great way to signal your experience and take control of the interview flow.
This strategic approach is a hallmark of seniority. You're not just following a script; you're using a tool to solve a problem. As the article "System Design Interview Fundamentals: Mastering Estimation" puts it, your goal is to identify the "crux" of the problem and focus your estimations there.
2. The Core Mechanics: A Framework for Estimation
Now that we understand the strategy, let's break down the mechanics. The goal is not perfect precision but to get within an order of magnitude. This is enough to make informed decisions.
We will focus on three primary quantities:
- Throughput: Often measured in Queries Per Second (QPS) or Transactions Per Second (TPS). This tells you how much load your services must handle.
- Storage: The total amount of data your system needs to hold over its lifetime. This informs your choice of databases, storage layers, and data retention policies.
- Bandwidth: The rate of data transfer required. This is critical for understanding network costs and potential bottlenecks.
The following video from ByteByteGo provides a clear, practical guide to calculating these numbers.
Back-Of-The-Envelope Estimation / Capacity Planning
This video, 'Back-Of-The-Envelope Estimation / Capacity Planning', will walk us through the fundamental calculations for throughput and storage.
Please watch the following segments: Inputs for QPS (00:01:12 - 00:02:45): Understand the three key inputs: Daily Active Users (DAU), usage per DAU, and a peak traffic scaling factor. Throughput Example (00:02:45 - 00:03:56): Follow the calculation for tweets created per second. Note the formula structure. Calculation Techniques (00:03:56 - 00:05:46): This is very important. Pay attention to the use of scientific notation and rounding (e.g., 86,400 seconds ≈ 100,000 or 10^5) to simplify the math. Storage Example (00:05:46 - 00:08:08): See how to estimate storage by considering the number of objects, average size, retention period (e.g., 5 years), and replication factor (e.g., 3 copies).
Let's solidify those formulas:
Throughput (Peak QPS):
Key Tip: Round 86,400 to for easier mental math.
Storage:
Bandwidth:
Bandwidth is directly related to throughput and the size of the data being transferred.

For example, to calculate ingress bandwidth:
If you estimate a write QPS of 1,500 and the average payload is 2 KB, your required ingress bandwidth is .
3. Essential Numbers to Memorize
Quick and confident estimation relies on having a few key numbers at your fingertips. You don't want to get stuck trying to remember the difference between a petabyte and a terabyte.
System Design Interview Fundamentals: Mastering Estimation
The article 'System Design Interview Fundamentals: Mastering Estimation' contains a set of invaluable tables. Committing these to memory will make your calculations much faster and more impressive.
Read the section 'Facts to Know'. Focus on memorizing the key values from these four tables: Metrics: Know the powers of 1000 from Kilo to Peta. Latencies: The relative speeds of memory, SSD, disk, and a cross-continent network round trip are crucial for justifying in-memory vs. on-disk solutions. Storage: Know the approximate sizes of common media types. Business: Having an order-of-magnitude sense for the user base of major services is helpful for making initial assumptions.
4. Application: Driving Design Decisions
This is where everything comes together. An estimation is only useful if it informs a decision. Let's return to the Uber design mock interview to see a masterclass in applying an estimate to drive a critical architectural choice.
Design Uber w/ a Ex-Meta Staff Engineer: System Design Interview breakdown
We'll now watch how the candidate uses an estimation to make a concrete technology choice, demonstrating the full loop from calculation to architectural trade-off.
Watch the segment from 00:35:18 to 00:46:25. Observe this three-step process: The Estimation (00:35:18 - 00:36:03): The candidate calculates the transactions per second (TPS) for driver location updates, arriving at a very high number (600,000 TPS). The Impact (00:41:43 - 00:45:34): This is the critical part. The candidate correctly identifies that 600k TPS is too high for a standard database like PostgreSQL. This number justifies the decision to use an in-memory solution (Redis) and a specific indexing strategy (geohashing). He expertly discusses the trade-offs between geohashing and quad-trees based on the high frequency of writes. \nThis sequence is the perfect model: Estimate → Analyze Impact → Justify Decision.
As a bonus, the candidate then discusses how to reduce that estimated load by being smarter about when to send location updates (from 00:46:44 onwards). This shows a deep, holistic understanding of the system, which is exactly what's expected at the Staff+ level.
5. Going Deeper: Staff-Level Questions
To further elevate your discussion, you should be able to frame your estimations within a broader context of system health, evolution, and cost. Your experience has taught you that initial estimates are just the beginning.
Capacity Estimation in System Design: Thinking Beyond the Numbers
This article on 'Capacity Estimation in System Design' provides framing questions that move beyond simple calculations into strategic thinking about scale and reliability.
First, review the section 'What Should We Estimate?' to see the breakdown of what capacity means beyond just storage (Data Volume, Throughput, Latency). \nThen, focus on the 'Questions to Ask During Estimation' section. These questions are excellent tools to have in your pocket during an interview. Asking 'What happens if our data grows 10x?' or 'What’s the cost of 1% more latency at P99?' shows you're thinking about failure modes, cost, and long-term scalability.
Conclusion
Back-of-the-envelope estimation is a foundational skill in system design. For senior and staff engineers, it's less a test of your math skills and more a demonstration of your ability to reason quantitatively, make pragmatic assumptions, and use data to drive architectural decisions.
Key Takeaways:
- Estimate with Purpose: Don't calculate for the sake of it. Perform estimations when the result will directly influence a design choice (e.g., "Do we need a cache?", "Can a single database handle this load?").
- Use a Simple Framework: For throughput, think
Users × Actions × Peak Factor. For storage, thinkObjects × Size × Retention × Replication. - Simplify the Math: Round aggressively (e.g., 86,400s -> s) and use scientific notation. The goal is order-of-magnitude correctness.
- Memorize Key Numbers: Knowing latencies and powers of 1000 is non-negotiable for a smooth performance.
- Connect Estimates to Decisions: The most critical step is to articulate how your estimate (e.g., "600k TPS") leads to a specific architectural decision (e.g., "Therefore, we'll use Redis for its in-memory performance").
Preview of the Next Lesson:
We've now clarified the "what" (functional requirements) and the "how much" (estimations). The next step is to define the "how to talk to it." In our next lesson, we will focus on how to "Define clear API contracts (e.g., REST, gRPC) for the system being designed." This will form the formal interface between our system's clients and its internal components.