Skip to content
We areTOP 1%

How do you estimate the storage a system will need over several years?

MediumConceptBack-of-the-Envelope Estimation
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

Multiply new records per day by the average record size, then by the retention period and the replication factor. Estimate small metadata and large media separately, because media usually dominates.

  • Example: 10 million new posts a day at about 1 KB each is 10 GB per day, about 3.65 TB per year, and roughly 18 TB over five years.
  • Replication: keeping three copies brings this to about 55 TB.
  • Media: if 10% of posts carry a 500 KB image, that adds 500 GB per day, which is why images belong in object storage behind a CDN.
  • Add headroom for indexes and growth, and use the result to decide whether the data fits on one machine or must be sharded.

More in Back-of-the-Envelope Estimation

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account