[ SRE_ARENA ]
SYSTEM DESIGN PRACTICE

Scale Requires Math, Not Just Buzzwords.

Visualization: 1. Back of the Envelope Calculations
DOWNLOADING CONCEPT: 1. BACK OF THE ENVELOPE CALCULATIONS...

↳In a system design interview, you must prove a design works using math.

Throughput
  • ↳If you have 100 million Daily Active Users (DAU), and each user makes 10 requests a day, that's 1 billion requests/day.
  • ↳1 billion / 100,000 seconds (roughly 1 day) = 10,000 QPS (Queries Per Second).
  • ↳A single standard database can't handle 10k writes/sec.
  • ↳You MUST shard or use a NoSQL solution.
Storage
  • ↳If users upload 1 million photos a day, at 2MB each, that's 2TB a day.
  • ↳Over 5 years, that's 3.6 Petabytes.
  • ↳You cannot store this in a block storage SAN.
  • ↳You MUST use an object store like S3.
▲ LIVE INCIDENTYou are designing a URL shortener (like bit.ly). Traffic is heavily skewed (some URLs get 10 million clicks a day, most get 0).
sre@arena:~/system-design-interviews
sre@arena:~$ design_simulator analyze architecture.yaml