当前位置:网站首页>Module 9 (E-commerce spike system)
Module 9 (E-commerce spike system)
2022-08-07 17:35:00 【InfoQ】
Business background
- You choose the best-selling and well-received products on major e-commerce platforms for sale, each category does not exceed 20 products, and currently has 10 categories;
- This 6.18 seckill selected 1000 power banks and 10 iPhone 12s as seckill commodities;
- normal daily activitiesAbout 1 million users;
- The boss asks for foolproof
Technical background
- The technical team is mainly Java and has already implemented the microservice architecture
- The main channel is self-serviceFor some apps (including iOS and Android) and WeChat mini-programs, in order to promote the conversion of users into app users, only the app can be downloaded to participate in the seckill activity;
- Currently only a single computer room
Performance analysis
- The normal daily activity is 1 million, and the number of people is assumed to be the usual number during the spike2 to 3 times the number of users, then the architecture design needs to be designed at the millions level, and the number of users is expected to be 3 million.
- Users need to advance in advanceLogin, assuming all logins within 30 minutes before the seckill, then QPS=3 million/180=1666/s
- Seckill starts, assuming the seckill requestIt is completed within 30 seconds, and each user clicks and requests 5 times on average, then TPS=3 million*5/30=500,000/s
Storage architecture design
Data analysis:
- Inventory data, frequent read and write, corresponding to spike scenarios, when a single database cannot support write requests, it can be shared by inventory splittingWrite pressure
- Commodity information is relatively fixed, read more and write less, you can use read and write separation to improve performance
- Order and payment data, because the number of products in the seckill is small, it will not increase the number of orders, so do not particularly consider it
- Commodity information, orders, bill payment, MySQL master-slave architecture can be used first
- The dynamic and static resources of the product details page are separated, and the static resources are accelerated by introducing CDN storage
- User information and inventory information are cached in Redis, the TPS of a single redis machine is 50,000 to 100,000, and there are high concurrent writes during the spike, the TPS is 500,000/s, and the multi-machine Cluster architecture is adopted
Computing Architecture Design
Load Balancing Design

cache design
- adoptedapp cache+web container cache+distributed cache three-level cache
- APP cache+web container cache, which can cache most static resources,Reduce back-end pressure
- Distributed cache, cache inventory, user, product information
High Availability Design
- App access terminal current limiting: reduce the access request through the clicker to prevent users from making high-frequency requests
- Gateway entry current limit: filter by business rules, check inventory
- Seckill task queue:The leaky bucket is used to limit the current, and the last legitimate seckill request is placed in the current-limiting bucket queue, and the queue is discarded when the queue is full.

YesExtended Architecture Design (Microservice Split)

边栏推荐
- how to set up a computer wireless network how to set up a wireless network connection
- Which software is easy to use for reinstalling the system, which is the best software for reinstalling the computer system
- 笔记本锁屏密码怎么设置 怎样给笔记本电脑设置锁屏密码
- How to solve the problem that the U disk cannot be detected in win10_How to solve the problem that the U disk cannot be recognized by the win10 system
- How to clean up computer C drive Win7 clean up computer C drive junk files method introduction
- win7系统运行游戏不兼容怎么办 win7电脑不兼容游戏的解决方法
- 笔记本电脑无线网卡怎么办理 如何办理笔记本电脑的无线上网卡
- Idle Mystic极具潜力的多玩家策略游戏
- 【Complete Backpack with Restrictions】Educational Codeforces Round 133 (Rated for Div. 2) D. Chip Move
- 运行关机命令是什么 电脑运行自动关机的指令是什么
猜你喜欢

How to set a laptop lock screen password How to set a laptop lock screen password

FutureTask源码深度剖析

宝塔实测-在线药店商城源码带WAP版

我又又又把Kubernetes整理了一次

What to do if the game is not compatible with the win7 system

How to solve the problem that the U disk cannot be detected in win10_How to solve the problem that the U disk cannot be recognized by the win10 system

Does the laptop have bluetooth? How to turn on bluetooth on the laptop

电脑上怎么打符号 电脑上怎么输入特殊符号

MySQL 锁效果演示

win7旗舰版产品密钥永久激活 win7旗舰版激活码最新2022
随机推荐
【带限制的完全背包】Educational Codeforces Round 133 (Rated for Div. 2) D. Chip Move
详解中断系统
Kotlin coroutine createCoroutine and startCoroutine principle
tiup cluster replay
MySQL面试必备(二)索引篇
How to adjust the computer settings for eye protection in win7 _ win7 eye protection color setting method
宝塔实测-在线药店商城源码带WAP版
笔记本能连接手机热点吗 笔记本电脑连接手机个人热点的步骤
调整台式电脑屏幕亮度的步骤 台式机显示器亮度怎么调
怎样设置电脑无线网络 如何设置无线网络连接
解决word文档页码不连续的方法
OD-Model【7】:YOLOv3
2018年最新Win7激活码 win7产品密钥永久激活 win7密钥激活码...
笔记本锁屏密码怎么设置 怎样给笔记本电脑设置锁屏密码
Some common questions in technical job interviews
企鹅电竞登录鉴权系统架构与核心数据热备容灾方案
tiup cluster patch
ps提示由于程序错误Photoshop无法完成请求怎么办
How to view web browsing history How to check history web browsing history
使用C语言实现静态顺序表