Real-World Production Deep Dives: Back-of-the-Envelope Estimation

โš ๏ธ Not yet source-checked. These case studies summarize public engineering posts and talks, and some details may be simplified or wrong. Before you repeat a specific number or design in an interview, check it against the company's own write-up. Found an error, or a source that confirms a section? Add it to the tracking issue. Sourced fixes are the most welcome contribution here.

Deep-dive architectural dissections of how Google and Netflix use quantitative estimation models for global capacity planning, datastore sizing, and network bandwidth forecasting.


๐Ÿข Deep Dive 1: How Google Uses Quantitative Estimation (Jeff Dean's Capacity Planning)

1. Production Context & History

2. Google's Web Search Index Sizing Model

When Google sized its crawling and index storage:

  1. The Crawl Target: Estimate 20 Billion web pages indexed.
  2. Page Content: Average HTML page after compression is โ‰ˆ 20 KB.
  3. Raw Storage Requirement:
20,000,000,000 ร— 20 KB = 400 Terabytes of raw text
  1. The Storage Multipliers:
    • Inverted word index + PageRank link graph adds 2ร— overhead โ†’ 800 TB.
    • 3x GFS / Colossus distributed replication โ†’ 2.4 Petabytes.
  2. Memory Sizing:
    • Google calculated that keeping the entire 2.4PB index in RAM was financially impossible.
    • Using the 80/20 rule, they partitioned the inverted index so the top 20% most frequent search terms resided in RAM across thousands of leaf search machines, while long-tail queries fetched from disk.

๐ŸŽฌ Deep Dive 2: How Netflix Sizes Its Global CDN (Capacity Planning for 260M Subscribers)

1. Production Context & Scale

2. Netflix's Open Connect Appliance (OCA) Sizing Math

How does Netflix determine how many physical storage appliances to ship to an ISP (e.g., Comcast in Chicago)?

  1. Peak Evening Consumption:
    • Chicago subscribers stream a peak aggregate bandwidth of 1.2 Terabits per second (Tbps) at 9:00 PM.
  2. OCA Hardware Capacity:
    • Each custom Netflix OCA server has a 100Gbps network interface card and 200TB of NVMe flash storage.
  3. Server Count Calculation:
Servers Needed = (1,200 Gbps) / (100 Gbps/server) = 12 Servers

Add N+2 redundancy for hardware failure โ†’ 14 Open Connect Servers deployed in the Chicago IXP rack. 4. Storage Sizing:


โš–๏ธ Comparative Estimation Matrix

Dimension Google SRE Planning Netflix Open Connect Planning
Primary Sizing Bottleneck In-memory RAM for low-latency ranking (<100ms) Egress network bandwidth (Tbps) at ISP edge
Replication Overhead 3x synchronous Paxos replication factor Proactive overnight push replication to edge OCAs
Safety Headroom Factor 1.5ร— to 2.0ร— peak traffic headroom Provisioned for N+2 server rack failures
Cost Tradeoff RAM vs NVMe Flash for search indexing Transit ISP peering fees vs Hardware CapEx

๐ŸŽฏ System Design Interview Takeaways

  1. Memorize the Rule of Thumb: Remember that 1M requests/day โ‰ˆ 12 QPS and 1B requests/day โ‰ˆ 12,000 QPS. It allows you to produce immediate QPS answers in seconds.
  2. Always Account for Replication Overhead: When calculating storage, never stop at raw data size. Always multiply by 3ร— for distributed replication (e.g. S3, GFS, Cassandra).
  3. Buffer for Caching Overhead: In RAM estimation, always add a 20โ€“30% memory buffer for data structure pointers, slab fragmentation, and hash map overhead.