Skip to content

Estimation (guesstimates) · Hard

Estimate how much new storage a photo-sharing app needs per day if it has 50 million daily active users.

Short answer

Multiply daily active users by the share who upload, photos per uploader and average stored size per photo, remembering that apps usually keep several resized versions and replicate data for durability. With illustrative assumptions, the answer lands in the hundreds of terabytes a day. Then discuss levers such as compression, deduplication and cold storage.

Detailed answer

Framework

  1. Clarify: photos only, or video too? New storage per day, including copies?
  2. Uploads: users × share uploading × photos each.
  3. Size per photo: original plus derived versions.
  4. Replication factor.
  5. Implications for cost and product decisions.

Worked example (all numbers are illustrative assumptions)

  • Daily active users: 50 million (given).
  • Assume ~20% upload on a given day: ~10 million uploaders.
  • Assume ~3 photos each: ~30 million photos a day.
  • Assume the stored original is compressed to ~2 MB.
  • Assume ~3 resized versions (thumbnail, feed, full-screen) adding ~1 MB in total: ~3 MB per photo.
  • Raw new data: 30 million × 3 MB ≈ 90 TB a day.
  • Assume data is replicated ~3 times for durability: ~270 TB a day.

Over a year, that is on the order of ~100 PB, before any deletions.

Product and engineering implications

  • Compression and modern formats reduce the per-photo size.
  • Deduplication of re-shared images helps if many uploads are forwards.
  • Tiered storage: photos rarely viewed after the first few weeks can move to cheaper, slower storage.
  • Product choices have cost: offering unlimited original-quality backup is very different from storing compressed copies.

Common pitfalls

  • Forgetting resized versions and replication.
  • Mixing up megabytes and megabits, or terabytes and petabytes.
  • Stopping at the number without discussing what it means for the product.