当前位置:网站首页>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

边栏推荐
猜你喜欢

按头安利!好看又实用的电机 SolidWorks模型素材看这里

Constexpr function

High performance and high availability computing architecture of "microblog comments" in microblog system

软件测试 接口测试 Jmeter 5.5 安装教程

Halcon实用:焊点检出设计思路

LC: maximum subarray and

数莓派 4怎么样?可能的玩法有哪些?

Why is JSX syntax so popular?

新钛云服荣膺“2022爱分析 · IT运维厂商全景报告”云管理平台CMP 代表厂商!...
![[译]在软件开发行业工作 6 年后,那些年我曾改过的观念](/img/69/c9829b14223f1e8fd3137d0750d8f7.png)
[译]在软件开发行业工作 6 年后,那些年我曾改过的观念
随机推荐
[leetcode] a number that appears only once [136]
6.29日刷题题解
Is China Merchants Securities reliable? Is it safe to open a stock account?
Matlab exercises -- program control process exercise
Database - playful data -pgsql uses UUID as primary key
小程序插件接入、开发与注意事项
Under the epidemic, I left my job for a year, and my income increased 10 times
基于OpenStack的虚拟机在线迁移
海外数字身份验证服务商ADVANCE.AI入选EqualOcean《2022品牌出海服务市场研究报告》
Jetpack之Room的使用,结合Flow
采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势
Golang泛型的巧妙应用,防止变量空指针错误,防止结构体字段空指针错误
新钛云服荣膺“2022爱分析 · IT运维厂商全景报告”云管理平台CMP 代表厂商!...
matlab习题 —— 程序控制流程练习
C指针进阶2-->函数指针数组 回调函数简化计算器代码,基于回调函数模拟实现qsort函数
FPGA开发(1)——串口通信
按头安利 好看又实用的点胶机 SolidWorks模型素材看这里
网上开户选哪个证券公司?还有,在线开户安全么?
穿越过后,她说多元宇宙真的存在
基金的利润分配与税收