SDE & MLE Prep

Worked Estimation Example

"Design Twitter: 300 M monthly users, 150 M daily, each posts 2 tweets and reads the feed 20 times a day."

writes : 150M x 2  / 1e5 s  ≈   3,000 tweets/s     (peak ~ 10k/s)
reads  : 150M x 20 / 1e5 s  ≈  30,000 feed reads/s (peak ~100k/s)   -> read-heavy, cache!
storage: 300M tweets/day x ~300 B ≈ 90 GB/day text  ≈ 33 TB/yr  (+ media in object store)
media  : 10% tweets with 1 MB image -> 30 TB/day   -> CDN + blob storage

Conclusions you should say out loud: read:write = 10:1 → precompute feeds and cache aggressively; media dominates storage → object store + CDN; text fits in a sharded key-value / wide-column store.