Loading...
Assume we have 1B users and 200M DAU. Each DAU make 2 posts daily and retreives 10 times a day.
read: 23k QPS
write: 5k QPS
CreatePost
GetNewFeeds
Users
Posts
Push model is that when the post is made, it will be written to all the followers. Pull model is that the new feed is built only when the users really get their feed.
Push over Pull
Pull over Push
Ideally, we can use the push + pull hybrid, which means we do pull model for the most users but for the celebrities, we does push for their followers.
All the datastores can be cached with in-memory cache.
Also, we can leverage CDN for media data to improve latency.
We will use non-relational DB as
We have discussed several tech choices above including