Capacity Estimation: Users and Posts
What You'll Learn
You'll learn how to estimate the scale of a social media feed system by calculating daily active users, post volume, and the storage and compute resources required to support them.
Why Capacity Estimation Matters
Before designing any large-scale system, you need to understand the size of the problem. For a social media feed, this means quantifying how many users you're serving, how much content they create, and what infrastructure that demands.
Think of it like planning a restaurant: you need to know how many diners to expect, how much food each typically orders, and how many chefs and kitchen space you'll need.
Core Calculations
Daily Active Users (DAU)
Start with your total registered users and estimate what percentage actively use the platform daily. For example:
- 1 billion registered users × 30% active = 300 million DAU
Posts Per User
Estimate average content creation per active user:
- If 10% of DAU create posts and average 2 posts/day: 30M × 2 = 60 million posts/day
- That's ~700 posts/second on average, with peaks 3-5× higher
Storage Requirements
Calculate total data volume:
- Post metadata (text, timestamps, IDs): ~1 KB/post
- Media (photos, videos): average 2 MB/post
- Daily: 60M posts × 2 MB = 120 TB/day
- Annual: ~44 PB (petabytes)
Compute Needs
Estimate request load:
- 300M DAU × 50 feed refreshes/day = 15 billion reads/day (~174K reads/second)
- Feed generation requires CPU for ranking, filtering, and aggregation
Key Takeaway: Capacity estimation translates vague requirements into concrete numbers—DAU, posts/second, storage TB, and throughput—that directly inform infrastructure sizing, database sharding, caching strategy, and cost planning.