Loading...
100M DAU
Avg Tweets /user/day = 5
500M write/day
5B reads/day
Average Text Size/Tweet = 100Bytes
Text storage: 50GB/day
Average Image size: 2MB
10% of tweets have images
Image storage size/day: 50M*2MB = 100TB
User profile store is separate
Post /post
Get /feed
Post /follow
Get /search
Tables:
User, Post, Follower
Also will have a separate search database
Components:
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?