Estimation

Target

  • There are 1 billion new Urls per month.

  • Need to retain data for 2 years.

Throughput

# write throughput
1 * 10^9 / (30 * 24 * 60 * 60) = 10 ^ 9 / 86400 = 10^4

# read throughput: Suppose read write ratio 100:1
10^4 * 100 = 10 ^ 6

* Usually peak time traffic is twice the average traffic
2 * 10^6

Bandwidth

Storage space

  • Tiny url encoded length?

    • 6

  • Each url record takes 1KB

Last updated

Was this helpful?