INITIALIZING SECURE CHANNEL...
CPU MEM NET PING9.2 ms SECSECURED
COFFEE—WEB v4.0 // eu-1
ONLINE 2 847 --:--:--
/english > 34. Estimation & Back-of-Envelope Calculations
// УРОК 34

Estimation & Back-of-Envelope Calculations

B2

Estimation & Back-of-Envelope Calculations

System design interviews often ask: "How much storage does Twitter need per day?" or "How many servers do we need?"

Useful Numbers to Know

FactApproximate Value
1 million requests/day≈ 12 requests/second
1 billion requests/day≈ 12,000 requests/second
1 byte1 character
1 KBShort document
1 MBMedium image
1 GBMovie (compressed)

Estimation Phrases

  • "Let me start by estimating daily active users."
  • "Assuming each user generates X events per day, that gives us..."
  • "Rounding up to be safe, we would need approximately..."
  • "That translates to roughly X GB of storage per day."
  • "With 10 million DAU and 10 messages per user per day, that is 100 million messages/day, or about 1,200 QPS."
// TERMINAL CHALLENGE

Проверь себя

Q1. How do you convert 1 million requests per day to requests per second?
Q2. Complete: '___ by estimating daily active users and average usage per user.'
Q3. If 10M users each send 5 tweets per day (140 bytes each), how much storage is needed per day?
Q4. What does 'QPS' stand for?
Q5. When making estimates, which approach is most appropriate?
╔═ GL1TCH v0.1 ═[ПОДКЛЮЧЕНО]═╗ [×]
СОЕДИНЕНИЕ АКТИВНО
запросов:
// сессия #{} начата
>_
[ РАЗРЫВ СВЯЗИ ]
лимит исчерпан...
иду спать... zzZ
хочешь больше? [зарегистрироваться] // +10 запросов в день