当前位置:网站首页>How to design a high concurrency system
How to design a high concurrency system
2022-07-03 18:47:00 【Camel sorting theory】
Suppose you work in a well-known e-commerce company too high concurrent system , Hundreds of millions of users , Billions of traffic a day , There are tens of thousands of concurrent traffic in the peak period , Even a hundred thousand . Then people will ask about your system architecture , What architecture of your system ? How to deploy ? How many machines are deployed ? How to use cache ?MQ How to use ? How to use the database ? It's about digging deep into how you can handle high concurrency .
Because people who do too much concurrent work must know , System architecture that is out of business is all on paper , When the complex business scenario is high concurrency , The system architecture must not be so simple , Use one redis, use mq You can get ? Of course not. , After the real system architecture is matched with the business , It will be simpler than this so-called “ High concurrency architecture ” It's a lot more complicated .
In fact, the so-called high concurrency , If you want to understand the problem , In fact, we have to start from the root of high concurrency , Why there is high concurrency ? Why high concurrency is so awesome ?
What I said is a little more simple , It's simple , Because at the beginning, the system was connected to the database , But you need to know that the database is supported to two or three thousand per second , It's almost over . That's why I said , Many companies , At the beginning , Technical comparison low, As a result, the business is developing too fast , Sometimes the system will hang up if it can't bear the pressure .
Of course it will , Why don't you hang up ? If your database is instantaneously loaded per second 5000/8000, Even tens of thousands of concurrent , It's bound to go down , Because, for example mysql I can't bear such a high concurrency at all .
So why is the high concurrence of Niubi ? It's because more and more people are using the Internet , quite a lot app、 Website 、 The system hosts high concurrent requests , Maybe thousands of concurrent per second in peak period , It's normal . If it's a double eleven or something , It's possible to have hundreds of thousands of concurrent per second .
So high concurrency , Plus the business that was so complicated ÿ
边栏推荐
- 235. 二叉搜索樹的最近公共祖先【lca模板 + 找路徑相同】
- 知其然,而知其所以然,JS 对象创建与继承【汇总梳理】
- Recent learning experience
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Real time split network (continuous update)
- Software development freelancer's Road
- Redis cache avalanche, penetration, breakdown
- Data analysis is popular on the Internet, and the full version of "Introduction to data science" is free to download
- 235. The nearest common ancestor of the binary search tree [LCA template + same search path]
- cipher
猜你喜欢
Know what it is, and know why, JS object creation and inheritance [summary and sorting]

Redis cache avalanche, penetration, breakdown

2022-2028 global copper foil (thickness 12 μ M) industry research and trend analysis report
![[Godot] add menu button](/img/44/ef1e6ac25bcbc8cc3ecc00c52f8ee2.jpg)
[Godot] add menu button

4. Load balancing and dynamic static separation

Naoqi robot summary 27

How to analyze the rising and falling rules of London gold trend chart

English grammar_ Noun classification

Implementation of cqrs architecture mode under Kratos microservice framework
![[leetcode周赛]第300场——6110. 网格图中递增路径的数目-较难](/img/8d/0e515af6c17971ddf461e3f3b87c30.png)
[leetcode周赛]第300场——6110. 网格图中递增路径的数目-较难
随机推荐
2022-2028 global physiotherapy clinic industry research and trend analysis report
Hard disk monitoring and analysis tool: smartctl
Sensor debugging process
Coordinate layer conversion tool (video)
Win 11 major updates, new features love love.
Multifunctional web file manager filestash
What does foo mean in programming?
leetcode:11. 盛最多水的容器【双指针 + 贪心 + 去除最短板】
[combinatorics] exponential generating function (proving that the exponential generating function solves the arrangement of multiple sets)
FBI 警告:有人利用 AI 换脸冒充他人身份进行远程面试
Shell script return value with which output
[combinatorics] generating function (positive integer splitting | repeated ordered splitting | non repeated ordered splitting | proof of the number of repeated ordered splitting schemes)
Recommend a simple browser tab
[combinatorics] generating function (positive integer splitting | basic model of positive integer splitting | disordered splitting with restrictions)
204. Count prime
How to quickly view the inheritance methods of existing models in torchvision?
Typescript official website tutorial
Which do MySQL and Oracle learn?
Database creation, addition, deletion, modification and query
Raft 日志复制