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

边栏推荐
- MySQL 8.0 data backup and recovery
- Shortest path problem of graph theory (acwing template)
- Rad+xray vulnerability scanning tool
- 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
- Set, weakset, map, weakmap in ES6
- 1.4 learn more about functions
- String and+
- Exercises of function recursion
- 6006. Take out the minimum number of magic beans
- Wargames study notes -- Leviathan
猜你喜欢

2.2 integer

Reinforcement learning - learning notes 1 | basic concepts

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

Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
![C 10 new feature [caller parameter expression] solves my confusion seven years ago](/img/32/2d81237d4f1165f710a27a7c4eb1e1.jpg)
C 10 new feature [caller parameter expression] solves my confusion seven years ago

9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar

JVM JNI and PVM pybind11 mass data transmission and optimization

2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions

Derivation of decision tree theory

Sightseeing - statistics of the number of shortest paths + state transfer + secondary small paths
随机推荐
Machine learning support vector machine SVM
Global and Chinese market of two in one notebook computers 2022-2028: Research Report on technology, participants, trends, market size and share
Recommendation of books related to strong foundation program mathematics
[Tang Laoshi] C -- encapsulation: member variables and access modifiers
The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
Initialization and instantiation
Preliminary practice of niuke.com (11)
Rad+xray vulnerability scanning tool
MySQL master-slave synchronization principle
MySQL dump - exclude some table data - MySQL dump - exclude some table data
2022 safety officer-c certificate examination and safety officer-c certificate registration examination
2.6 formula calculation
1.5 learn to find mistakes first
设计电商秒杀系统
[effective Objective-C] - block and grand central distribution
Node MySQL serialize cannot rollback transactions
Global and Chinese market of micro positioning technology 2022-2028: Research Report on technology, participants, trends, market size and share
Refer to some books for the distinction between blocking, non blocking and synchronous asynchronous
11-grom-v2-05-initialization
MPLS configuration