WeChat Moments Performance Analysis
Capacity Estimation
Over 330 million of WeChat’s (known as Weixin in China) 1.2883 billion monthly active users use video calling. 780 million users are on the social networking section WeChat Moments and 120 million publish updates. The content network WeChat Official Account has 360 million users.
Post
There are 120 million users who publish moments every day. Let's assume each user publishes two posts daily, so we have 240 million daily posts.
Using the 20/80 rule, we assume 80% of the posts were made within 20% of the time (24h).
TPS = 120 million x 2 x 80% / (24h x 20%) ~= 12k
Read
We have 780 million daily active users, let's assume each user opens moments 4 times per day.
With the same 20/80 rule. The QPS is
QPS = 780 million x 4 x 80% / (24h x 20%) ~= 144k
Like
Let's say everyone is super nice and sending ten likes per day, so the total daily likes will be
TPS = 780 million x 10 x 80% / (24h x 20%) ~= 361k
Comment
Let's assume every user makes 5 comments per day.
TPS = 780 million x 5 x 80% / (24h x 20%) ~= 180k
Singe Node vs Cluster
High-Level Architecture
版权声明: 本文为 InfoQ 作者【David】的原创文章。
原文链接:【http://xie.infoq.cn/article/d8db12b188f815ae40aa6ceb6】。文章转载请联系作者。
评论