Free preview

Resource Estimation

Why this matters: this lesson contains a genuine mistake in the published source. Working out why it is wrong is more instructive than any correct calculation in the chapter, because the correct answer shows that the whole estimation is measuring the wrong resource.

Assumptions

  • Users: 1 billion total users, with 150 million daily active users (DAU)
  • Requests: each active user sends ~10 requests daily, totaling 1.5 billion requests per day
  • Request size: approximately 2 KB (mostly short text prompts)
  • Response size: approximately 5 KB (AI-generated replies are typically longer)

Requests per second

Total daily requests = 150,000,000 x 10        = 1.5 billion
RPS                  = 1,500,000,000 / 86,400  = 17,361 requests/second

That figure of 17,361 RPS is used correctly throughout the bandwidth calculations. Keep it in mind for the next section.

Number of servers — the published calculation

The source states the formula:

Servers needed at peak load = (Number of requests/second) / (RPS of server)

Then, using a standard web server capacity of 64,000 RPS, it computes:

Servers needed at peak load = 150 million / 64,000 = 2,343 servers

Storage

Total storage per day = 1.5 billion requests x 2 KB = 3 TB/day
Total storage per year = 3 TB x 365                 = 1.1 PB/year

The source adds a genuinely important aside in this section:

Modern deep learning models are massive, requiring significant storage and compute power. For example, a model with 3 billion parameters in FP16 (16-bit floating point) format occupies around 6 GB. To enable real-time inference, these models are loaded into GPU memory, often distributed across multiple GPUs to balance the load.

Bandwidth

Incoming = 17,361 req/s x 2 KB x 8 bits = 277.8 Mb/s
Outgoing = 17,361 req/s x 5 KB x 8 bits = 694.4 Mb/s
Total                                   ~ 972 Mb/s, under 1 Gb/s

Both published figures reproduce exactly.

Key takeaway

The published server count of 2,343 is wrong by 8,640x — it substitutes DAU where the formula asks for RPS, and the source's own prose ("the web tier requirements are minimal") is correct while its arithmetic is not. Corrected, the answer is 0.27 servers, which is the real finding: every resource this estimation measures is negligible. 1.1 PB/year of storage, under 1 Gb/s of bandwidth, three orders of magnitude below any previous chapter. The one number that matters is buried in the storage section — parameters times bytes-per-parameter gives GPU memory, and 175B in FP16 needs 350 GB, or five GPUs, before a single user connects.

Interview signal by level

LevelWhat a strong answer sounds like
L4"150M DAU at 10 requests each is 17,361 RPS, about 3 TB of prompts per day and under 1 Gb/s of bandwidth."
L5Notices the numbers are small: "all of these are tiny compared to the storage and bandwidth systems we've designed — which means the bottleneck must be somewhere else, and it's GPU inference."
Staff+Corrects and reframes: "the standard estimate gives under one web server, because 64,000 RPS models request parsing, not a thousand forward passes through a 175-billion-parameter network. Every quantity in the template comes back negligible, which is the signal that the template is measuring the wrong resource. The number that matters is parameters times bytes per parameter — 175B in FP16 is 350 GB, so five GPUs before any user data, and quantizing to INT8 takes it to three. And the egress figure hides that responses stream, so the tier is sized in concurrent connections rather than bytes."

Next: the estimation the source declined to do.

Enjoying the preview?

Create a free account to unlock the rest of this course, the in-browser judge, and live AI mock interviews.

Sign up free to continue