当前位置:网站首页>System architecture design of circle of friends

System architecture design of circle of friends

2022-07-04 07:24:00 InfoQ

Overall analysis of the complexity of the circle of friends
The business of the circle of friends is relatively simple :  Send a circle of friends , Check out the circle of friends , Praise and comment .
But the quality and complexity of the circle of friends are relatively high , Especially high performance , Considering that many people use wechat , Especially in holidays, there will be peak use .
According to the above analysis , Wechat circle of friends should belong to the first part of the figure below .
null
High performance complexity analysis of circle of friends
Data background :2021 Statistics in the third quarter of the year , The number of wechat users has reached 12.6 Billion .
1. Hair circle of friends :  Let's assume that every day we have 5 One in ten people use , And these users send 3 A circle of friends .2.52 Billion *3/3600/24 =8750TPS, The peak of holidays is 100 By , Yes 87.5w TPS
2. Look at the circle of friends : Suppose there is 10 Hundreds of millions of users watch it every day 10 Time ,QPS by 11.574w,  The peak of holidays is 50 times , The peak value is 500w QPS
give the thumbs-up , Every time I send a circle of friends , Three likes on average , The peak value is TPS It's about 260W

Send a circle of friends
null
Circle of friends
null
Like the structure of the circle of friends
null

Description of the structure of the circle of friends
1、 Because the business of the circle of friends is relatively simple , Therefore, only task allocation is needed to deal with high-performance solutions , There is no need for task decomposition .
2.  Due to the large number of wechat users , Sending a circle of friends produces many records , And many of them are pictures , video , In addition, due to the increase of data, it will also be very fast , The storage system is required to support horizontal expansion .Nosql The ability of database in this aspect is better than that of relational database , So choose nosql For storage .
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141536498063.html