当前位置:网站首页>Construction of module 5 of actual combat Battalion
Construction of module 5 of actual combat Battalion
2022-06-29 23:45:00 【InfoQ】
Microblogging comments on the design of high-performance and high availability computing architecture
One 、 Computational performance prediction
1.1 User volume
1.2 Microblog comment scenario key behaviors :
- Comment on
- See the comments
1.3 Behavior modeling and performance estimation
- Comment on : Suppose that the average person sends 1 Micro-blog ( Only consider text microblog ), The daily sending volume of microblog is about 2.5 Billion bars . Most people tweet in the morning 8:00~9:00 spot , At noon, 12:00~13:00, evening 20:00~22:00, Suppose that the proportion of the total amount of microblogging in these time periods is 60%. The time when users send comments basically coincides with the time when they send microblogs , And most of the comments focus on the stars and the big V On Weibo . Suppose that on average, each microblog has 100 Human reading , One in ten people will comment , Then each microblog corresponds to 10 comments . The performance estimate is :2.5 Billion bars * 10 comments* 60%/(4 * 3600) ≈ 100K/s
- See the comments : Look at the time of comments and make comments 、 The time of microblogging basically coincides . Suppose about... Of the people who read Weibo 30% I will click on the comments to view , Then the performance estimate is :2.5 Billion bars * 100 people * 30% * 60%/(4 * 3600) ≈ 300K/s
Two 、 Microblogging comments on the design of high-performance computing architecture
2.1 Comment on
2.1.1 Comment on architecture design
- Analyze from the business characteristics , Commenting is a write operation , Cache cannot be used under normal circumstances , Load balancing can be used .
- Architecture analysis : Over 100 million users ,TPS The requirements are also very high , A multi-level load balancing architecture should be used , Cover DNS -> F5 -> Nginx -> Multilevel load balancing of gateway .
- Architecture design :
2.1.2 Comment on the multi-level load balancing architecture

2.2 See the comments
2.2.1 Review architecture design
- Business characteristic analysis , Reading comments is a typical reading scene , Because the comments can't be modified after they are sent , Therefore, it is very suitable to use cache architecture , At the same time, due to the large number of requests , Load balancing architecture also needs .
- Architecture analysis :
- Architecture design :
2.2.2 Look at the review of multi-level load balancing architecture

2.2.3 Look at the comment's multi-level cache architecture

2.3 Overall architecture scheme

2.3.1 Design of multi-level load balancing for microblog comments

2.3.2 Design of multi-level cache architecture for microblog comments

3、 ... and 、 Weibo comments on high availability architecture design
3.1 User behavior modeling of microblog hot events 、 Performance estimation
- Comment on :
- See the comments :
3.2 Business characteristic analysis
- Comment on : Comments are generally less important than tweeting , And many comments will be brushed down after they are sent out , Will not be seen immediately , When a hotspot event occurs, it can reduce the load pressure of the system through write caching .
- See the comments : After the hot event , The main reason to read the comments is that most of the popular comments under the hot microblog , These comments are mainly cached in CDN in , It can be accessed quickly .
3.3 High availability architecture analysis
- Comment on : Sending comments is not as important as sending microblogs , And there are many comments that don't need to be seen immediately , Consider using current limiting to protect the system . At the same time, comments can increase the degree of discussion , Activate the community atmosphere , Bring better communication effect , So it should not be discarded , Consider the leaky bucket algorithm , Through one kafka Message queuing to implement write buffering .
- See the comments : There is a cache hotspot problem in the hot event microblog , You can consider “ Multi copy cache ”, Because the original cache architecture has adopted “ Cache in application ”, In general , Cache hot issues are not necessarily prominent .
3.4 High availability architecture design diagram

边栏推荐
- C pointer advanced 2-- > function pointer array callback function simplifies calculator code, and implements qsort function based on callback function simulation
- Top ten securities companies: "bulldozer market" reappearance
- CE second operation
- Under the epidemic, I left my job for a year, and my income increased 10 times
- Pain points and solutions of M1 notebook home office | community essay solicitation
- Incluxdb time series database system
- 2022 PMP project management examination agile knowledge points (5)
- LC:有效的数独 + 旋转图像
- Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
- matplotlib matplotlib中plt.hist()参数解释
猜你喜欢

Simple understanding of B tree and b+ tree

这个简单的小功能,半年为我们产研团队省下213个小时

Overseas digital authentication service provider advance AI was selected into the "2022 brand sea Service Market Research Report" of equalocean

软件测试 接口测试 Postman测试工具 接口测试的流程 执行接口测试 接口关联 环境变量和全局变量 内置动态参数以及自动有的动态参数

机器学习:VC维的概念和用途

Create an API rapid development platform, awesome!

Use of jetpack's room in combination with flow

matplotlib matplotlib中plt.hist()参数解释

CE第二次作业

Constexpr function
随机推荐
@Scheduled注解的坑,我替你踩了
采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势
Leetcode 1385. 两个数组间的距离值
基金的利润分配与税收
Principe de réalisation de l'agent dynamique
Constexpr function
Fund valuation, expenses and accounting
Solr basic operation
Cacti关于spine轮询的设置
“微博评论”的高性能高可用计算架构
Database - playful data -pgsql uses UUID as primary key
Is it safe to open a stock account? Shanghai stock account opening.
After working in the software development industry for six years, I changed my ideas in those years
RRDTOOL draws MRTG log data
Solr基础操作4
matplotlib matplotlib中plt.hist()参数解释
Jetpack之Room的使用,结合Flow
Cacti最大监控数测试
新钛云服荣膺“2022爱分析 · IT运维厂商全景报告”云管理平台CMP 代表厂商!...
FPGA开发(2)——IIC通信