当前位置:网站首页>Graduation project: design seckill e-commerce system
Graduation project: design seckill e-commerce system
2022-07-04 04:17:00 【InfoQ】
1. Basic business scenarios

- System (
APPAnd WeChat applet ) The homepage shows the seckill activity , The second kill button is grayed out in non second kill time period , Users can browse the product list even if they don't register and log in 、 Details of the goods ;
- Wechat apps can only watch seckill activities , But you can't participate in the second kill , Only pass
APPThe client participates in seckill ;
- Second kill is usually on the shelf at a fixed time , The user can see the product , But I can't click “ Buy now ” The button , Before the second kill, users will quickly refresh the product page , A lot of visits , Enter the order page first when the seckill starts ;
- The second kill is limited and the price is unlimited , Drain the mall as much as possible ; And before the second kill , The mall needs a series of activities ; Users must register and log in before they can participate in seckill ;
- Second kill time , Only the first order submitted by the user is sent to the order subsystem of the website ;
- Each user should ensure that only one product can be killed every second , Only the first submitted order is sent to the order subsystem of the website ;
- Second kill is usually on the shelf at a fixed time , And there can be no “ Oversold ” The problem of ;
- Second kill is a marketing tool , Can not affect the daily application of the mall .
2. Storage architecture design
2.1 Storage performance estimation
2.1.1 Register login
2.1.2 Commodity information
- The stored product information shares
10 Categories * The most 20 individual = 200 stripdata
- Users participating in the second kill will quickly refresh the product page , Suppose each user refreshes 5 Time , Then the number of requests for product information is 400 ten thousand *5=2000 ten thousand . Secsha users' rapid refresh of the product page is mainly focused on the... Before the start of the activity 1 Hours , During this period of time, you can query commodity information
QPS:400W * 5 / (60 * 60) = 5555
2.1.3 seckill
2.1.4 Order
TPS = 400w/60/60 = 11112.2 Storage architecture design

MySQLdata storage 500 Million user information and 400 Million user login information
MySQLDatabase maintenance 200 A relational database of product information
MySQLDatabase storage 400W Data
RedisThe cache database stores the request information of commodities 2000 ten thousand , Number of order requests 400 ten thousand
3. Computing architecture design
3.1 Computing performance evaluation
3.1.1 register
3.1.2 Sign in
3.1.3 Commodity information
400 ten thousand *10/60*60 = 111113.1.4 seckill
3.1.5 Order
- Second kill effective order 1010, Suppose these orders are in 5S Endogenesis , A second kill order is generated TPS = 1010/5 = 202.
- According to the previous assumption ,400W Users have an average of 1 Orders and focus on the second kill 1 Within hours , To generate the order TPS = 400w/60/60 = 1111;
- The stored order data is 400W Bar record , The average number of orders queried by users on that day 2 Time , Query order request quantity is 800W; Suppose the query time is concentrated after the second kill 2 Hours , Query order TPS = 800W/60/60/2 = 1111.
3.2 Load balancing design of computing architecture

3.2.1 Business characteristic analysis
3.2.2 Architecture design
3.3 Cache architecture design of computing architecture

3.3.1 download APP
3.3.2 Business characteristic analysis
3.3.3 Architecture design
4. High availability architecture design
- Second kill activity is not normal , It's a marketing tool , Short duration , However, it will generate dozens of times larger page visit traffic and order traffic than usual , If the second kill activity is deployed with the ordinary application of the mall , It may have an impact on daily business , To improve usability , The seckill system can be deployed independently , Even using a separate domain name , Make it completely isolated .
- Due to the second kill request TPS A very large , Queuing architecture can be used , The request is not processed immediately after it is received , Instead, put the request in the queue , The system processes data asynchronously according to its capability .
4.1 Spike queue structure

4.1.1 Business characteristic analysis
4.1.2 Architecture design
5. Scalable architecture design
6. evolution
边栏推荐
- Flink学习8:数据的一致性
- Objective-C description method and type method
- 量子力学习题
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- Unity 绘制弹球和台球的运动轨迹
- Perf simple process for multithreaded profile
- Database SQL statement summary, continuous update
- 02 specific implementation of LS command
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- SQL語句加强練習(MySQL8.0為例)
猜你喜欢

软件测试是干什么的 发现缺陷错误,提高软件的质量

idea修改主体颜色

Brief explanation of depth first search (with basic questions)

Reduce function under functools

Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)
![CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构](/img/ba/c1d40de154344ccc9f2fd1dd4cb12f.png)
CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构

Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..

Idea configuration 360zip open by default -- external tools

深度优先搜索简要讲解(附带基础题)

毕业设计:设计秒杀电商系统
随机推荐
Wechat official account web page authorization
Calculate the odd sum of 1~n (1~100 as an example)
【读书会第十三期】多媒体处理工具 FFmpeg 工具集
SQL语句加强练习(MySQL8.0为例)
Two commonly used graphics can easily realize data display
Myslq delete followed by limit
The maximum expiration time of client secret in azure ad application registration is modified to 2 years
MySQL maxscale realizes read-write separation
STM32外接DHT11显示温湿度
Es network layer
Is it safe to buy insurance for your children online? Do you want to buy a million dollar medical insurance for your children?
【罗技】m720
Flink学习6:编程模型
VIM add interval annotation correctly
ctf-pikachu-CSRF
支持首次触发的 Go Ticker
Rhcsa-- day one
Spa in SDP
Katalon使用script实现查询List大小
“软硬皆施”,助力建成新型云计算数据中心