当前位置:网站首页>Design e-commerce seckill system
Design e-commerce seckill system
2022-07-03 20:39:00 【InfoQ】
One 、 background
technology
- Technical team Java Technology oriented
- Microservices have been launched
- At present, single room
- Yes APP Follow wechat applet , Requires only APP Users can participate in the second kill
Business
- Selling goods <=10 Categories *20 A commodity
- This second kill 2 A commodity (1000 A power bank 、10 platform iphone12)
- The normal daily life is about 100w user
- At present, there are only single rooms
- The boss needs to be foolproof
Two 、 Business analysis
3、 ... and 、 Design ideas
- Do a good job of isolation : Including seckill service isolation 、 Isolation of middleware . Deploy the service cluster separately , Prevent the collapse of other services .
- Multi layer current limiting : Make sure you arrive DB Layer can be in controllable flow .
- Try to cache : Preheat the goods to the cache in advance , Including inventory data .
- High availability design : Including current limiting 、 line up 、 Downgrade 、 Fuse .

Storage architecture design


6、 ... and 、 Computing architecture design
6.1、 Load balancing design

6.2、 Cache design

7、 ... and 、 High availability design
7.1、 Current limiting design

- 1、 Current limit at the requester : Limit the current when making a request , Requests that are throttled are not actually sent to the back-end server
- 2、 Current limiting at the access end : Conduct current limiting when receiving a service request , Avoid requests going into the actual business process
- 3、 A single service protects itself , If there are too many requests , New requests can be discarded
7.2、 Queuing design

- 1、 Queuing module . Use Kafka Message queue , Save the request first in first out , The size of the queue can be more than that of the second kill commodity .
- 2、 Scheduling module . Test according to the processing capacity of seckill service , Ability to handle , Put the messages in the queue under the seckill service .
- 3、 Other services . Real business processing module , If you place an order 、 Close the deal .
7.3、 Degraded design

7.4、 Fuse design

边栏推荐
- JS three families
- QT tutorial: signal and slot mechanism
- Global and Chinese markets of active matrix LCD 2022-2028: Research Report on technology, participants, trends, market size and share
- Strange way of expressing integers (expanding Chinese remainder theorem)
- 1.5 learn to find mistakes first
- Set, weakset, map, weakmap in ES6
- TLS environment construction and plaintext analysis
- Analysis of gas fee setting under eip1559
- Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
- Wargames study notes -- Leviathan
猜你喜欢

Popularize the basics of IP routing

TLS environment construction and plaintext analysis

44. Concurrent programming theory

How to handle wechat circle of friends marketing activities and share production and release skills

Shortest path problem of graph theory (acwing template)

Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~

jvm jni 及 pvm pybind11 大批量数据传输及优化

Task of gradle learning

JVM JNI and PVM pybind11 mass data transmission and optimization

MDM mass data synchronization test verification
随机推荐
Class loading process
MDM mass data synchronization test verification
Battle drag method 1: moderately optimistic, build self-confidence (1)
Task of gradle learning
Microservice knowledge sorting - search technology and automatic deployment technology
Micro service knowledge sorting - three pieces of micro Service Technology
In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
Phpexcel import export
Basic command of IP address configuration ---ip V4
Micro service knowledge sorting - cache technology
2.6 formula calculation
浅议.NET遗留应用改造
Node MySQL serialize cannot rollback transactions
Virtual machine installation deepin system
Discussion Net legacy application transformation
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
47. Process lock & process pool & Collaboration
1.4 learn more about functions
How can the outside world get values when using nodejs to link MySQL
Oak-d raspberry pie cloud project [with detailed code]