当前位置:网站首页>Job interviews are always a second kill? After reading the seckill system notes secretly stored by JD T8, I have given my knees
Job interviews are always a second kill? After reading the seckill system notes secretly stored by JD T8, I have given my knees
2022-07-25 21:22:00 【Java misty rain】

Whether it's an interview or at work , We are all prone to problems :
How to achieve capacity expansion under extreme process pressure ?
When the system crashes , After the service is blown , How to ensure the normal operation of data ?
When the system is new , How to ensure the stability of the system ?
How to realize the high availability architecture design required by each level ?
How to implement a system that can support high concurrency , Highly available system ?······
Understand the underlying principles , In practice, he is a master . For example, high concurrency means that a large number of visitors visit the target system in a relatively short time , System load saturation or overload downtime . High concurrency applications , We should all have used or seen , For example, Tmall. 、 JD.COM 、 A lot of spelling 、 Amazon's second kill rush and 12306 Ticket grabbing .
When we are experiencing the application , You may not think of the difficulty of implementing the technology behind this highly concurrent system . These problems exist in high concurrency systems , High concurrency high concurrency read and write 、 Sudden access peak 、 Immediacy of feedback results .
However, from 0 To 1 Achieve a high performance , High concurrency , Second kill system with high availability , There must be a lot of things to pay attention to , Share a learning note document of seckill system architecture for free here !
First look at the catalogue



One 、 What are the key points in the architecture design of spike system ?
Second kill mainly solves two problems , One is concurrent reading , One is concurrent write . The core optimization concept of concurrent reading is to minimize the number of users to the server “ read ” data , Or let them read less data ; The same principle applies to concurrent writes , It requires us to separate a database at the database level , Do something special .

Two 、 What should be paid attention to when designing the second kill system 5 There are two principles of architecture
Seckill system is essentially a system that satisfies large concurrency 、 High performance and high availability distributed system . This chapter mainly talks about how to meet the requirements of a well structured distributed system , To achieve the ultimate performance improvement for the second kill business .

3、 ... and 、 How to do a good job of dynamic and static separation ? What are the options ?
Key points of this chapter : The separation of static and dynamic data . I wonder if you've heard of this solution before ? Whether you've heard of it or not , I suggest you stop and think about the value of the separation of motion and static . If your system has not yet started to apply the dynamic static separation scheme , Then you can also think about why there is no , I didn't think of it before , Or is there no need for business volume ?

Four 、 This principle : Deal with the problems of the system “ Hot data ”

5、 ... and 、 How to cut the flow peak ?
If you have seen the flow monitoring diagram of seckill system , You'll find it's a straight line , It's a very straight line at the beginning of seckill , This is because the seckill request is highly focused on a specific point in time . thus , It will lead to a very high traffic peak , It consumes resources instantaneously

6、 ... and 、 What are the factors that affect performance ? How to improve the performance of the system ?
This chapter combines the second kill scene , Focus on introducing some optimization skills of the server .

7、 ... and 、 Seckill system “ Reduce inventory ” Core logic of design
If you want to design a second kill system , Then I think your boss will tell you first : Never oversold , That's the big premise

8、 ... and 、 How to design the bottom plan ?


边栏推荐
- Kali modify the update source (it is not safe to update with this source)
- Airtest解决“自动装包”过程中需要输入密码的问题(同适用于随机弹框处理)
- 大厂面试官:千万级数据量的表,如何进行快速查询?
- [manageengine]itsm application in retail industry
- cuda_ error_ out_ of_ Memory (out of memory)
- The adequacy of source evaluation forum · observation model test
- Vivo official website app full model UI adaptation scheme
- cts测试步骤(卡西欧cts200测试)
- In depth understanding of seven specific ways to enhance code scalability
- Recommend a website that converts curl commands into PHP code & a website that initiates and executes curl requests online
猜你喜欢
![[fiddlertx plug-in] use Fiddler to capture the package Tencent classroom video download (unable to capture the package solution)](/img/de/7a288ee8e6001235d4869c10503932.png)
[fiddlertx plug-in] use Fiddler to capture the package Tencent classroom video download (unable to capture the package solution)

Vivo official website app full model UI adaptation scheme

Leetcode-919: complete binary tree inserter

Airtest solves the problem that a password needs to be entered in the process of "automatic packaging" (the same applies to random bullet frame processing)

The onnx model is exported as a TRT model

Debugged PEB (beingdebugged, ntglobalflag)

Product principles of non-financial decentralized application

Stm3 (cubeide) lighting experiment

Trusted and controllable way of Tencent cloud database

pyqt5使用pyqtgraph绘制多个Y值散点图
随机推荐
The role of the resize function is "suggestions collection"
On Web Performance Optimization (1)
All non isomorphic subgraphs of a directed complete graph of order 3 (number of different hook graphs)
一道golang中defer和函数结合的面试题
Leetcode skimming -- guess the size of numbers II 375 medium
The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference
字节一面:TCP 和 UDP 可以使用同一个端口吗?
In depth understanding of seven specific ways to enhance code scalability
Cesium polygon gradient texture (canvas)
Based on pexels image material API, sort out the material resource library
Golang language quickly get started to comprehensive practical notes (go language, beego framework, high concurrency chat room, crawler)
【C语言入门】ZZULIOJ 1016-1020
Blood spitting finishing nanny level series tutorial - playing Fiddler bag capturing tutorial (7) - Fiddler status panel -quickexec command line
Recommend a website that converts curl commands into PHP code & a website that initiates and executes curl requests online
Apache Shenyu admin authentication bypass vulnerability (cve-2021-37580) analysis and protection measures
Byte side: can TCP and UDP use the same port?
黑盒(功能)测试基本方法
一道golang中关于recover的面试题
Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
How to store pictures in the database "suggested collection"