当前位置:网站首页>Cache comprehensive project - seckill architecture
Cache comprehensive project - seckill architecture
2022-06-27 03:49:00 【Uncle meow】
In the previous articles, we learned about read caching 、 Write caching and data collection scenarios , In this article, we will integrate these three aspects to implement a spike architecture .
The characteristics of secsha architecture are cannot meet the needs of the people , Generally speaking, goods will be robbed in two seconds , Subsequent users can only see the end of the second kill interface , Therefore, there will be a traffic peak in the first two seconds of the second kill . And the spike architecture design should ensure that the goods cannot be oversold 、 Order data cannot be lost 、 The server and database cannot crash 、 Try to shield the robot from stealing goods . Let's explain these four aspects .
One 、 Realize the idea
1.1 Architecture brief
Secsha architecture is a process of constantly filtering requests , Generally speaking, the seckill system is divided into 5 layer : Static resources / Load balancing 、 gateway 、 Background server 、 cache and database . We try to handle user requests in the first and second layers , About how to intercept requests in the first and second layers , It needs to be considered in combination with the actual business .
1.2 Ideas
The business process of secsha system is divided into four layers : Display page 、 Place an order 、 payment and result . Next, we will explain the implementation ideas for the four layers of the business process .
1.2.1 Show page intercept request
For the product display page , In most cases, we will use the content distribution network , That's what they say CDN, Use CDN The advantage is that we don't need to spend our own server resources , And fast response , The pressure of static resources can be transferred to external systems .
Since there are static resources ÿ
边栏推荐
- USB DRIVER
- How do I simplify the development of interfaces in open source systems?
- Ledrui ldr6035 usb-c interface device supports rechargeable OTG data transmission scheme.
- Kotlin compose implicitly passes the parameter compositionlocalprovider
- USB DRIVER
- Stack overflow vulnerability
- IOS development: understanding of dynamic library shared cache (dyld)
- How can e-commerce products be promoted and advertised on Zhihu?
- Questions and answers of chlor alkali electrolysis process in 2022
- 2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
猜你喜欢

2016Analyzing the Behavior of Visual Question Answering Models

resnet152 辣椒病虫害图像识别1.0

Quickly master asp Net authentication framework identity - reset password by mail

mysql数据库基础:DQL数据查询语言

栈溢出漏洞

2021:Zero-shot Visual Question Answering using Knowledge Graphs使用知识图的零次视觉问答

Ledrui ldr6035 usb-c interface device supports rechargeable OTG data transmission scheme.

Argo Workflows —— Kubernetes的工作流引擎入门

面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?

Agile development - self use
随机推荐
苹果唯一图谱架构常识
2021:Passage Retrieval for Outside-KnowledgeVisual Question Answering通道检索的外部知识视觉问答
Ldr6028 OTG data transmission scheme for mobile devices while charging
2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
快速掌握 ASP.NET 身份认证框架 Identity - 通过邮件重置密码
Yuantou firm offer weekly record 20220627
2019LXMERT:Learning Cross-Modality Encoder Representations from Transformers
Basic functions of promise [IV. promise source code]
Nacos调用微服务两个问题:1.Load balancer does not contain an instance for the service 2.Connection refused
Quickly master asp Net authentication framework identity - reset password by mail
PAT甲级 1020 Tree Traversals
mysql数据库基础:DQL数据查询语言
Network structure and model principle of convolutional neural network (CNN)
There are two problems when Nacos calls microservices: 1 Load balancer does not contain an instance for the service 2. Connection refused
Further exploration of handler (Part 2) (the most complete analysis of the core principles of handler)
Record the method of reading excel provided by unity and the solution to some pits encountered
Argo Workflows —— Kubernetes的工作流引擎入门
Human soberness: bottom logic and top cognition
GAMES101作业7提高-微表面材质的实现过程
Usage knowledge of mobile phones in new fields