当前位置:网站首页>Module 9 - Designing an e-commerce seckill system
Module 9 - Designing an e-commerce seckill system
2022-08-10 11:33:00 【InfoQ】
Requirements

Business performance analysis
Business Scenario
- To be loaded into the Redis cache in advance of the seckill product
- Before the seckill10 minutes user centralized login App
- Users frequently refresh the corresponding product page before the spike
- Seckill requests are usually concentrated within 10 seconds after the event starts
- Successful orders will be paid within 5 minutesdiv>
Performance Analysis
- The normal daily activity is 1 million. It is assumed that due to the warm-up of the 618 activity, the daily activity doubled to 2 million, of which30% (600,000) will participate in the spike activity.
- 600,000 login requests 10 minutes before the spike, QPS = 600,000 / 10 / 60 = 1000
- There are 3 types of return results for the seckill request: success, sold out, and failure.
- In the case of success or sold out, users cannot participate in the flash sale again.
- Failure is due to the fact that the system fails to process the request under high concurrency, and the user may click the seckill to try again.Assume on average two retries per user.
- According to this estimate, TPS = 600,000 * 2 / 10 = 120,000
StorageArchitecture
- Seckill activities are mainly handled by Redis cluster, including product preview, real-time inventory refresh, etc.;
- MySQL is used for data persistence.

Load Balancing
- Because the company is still in the start-up stage, F5 is not considered.Adopt three-level load balancing architecture

Cache Design

High Availability Architecture
- The normal daily life of the system is at the level of one million, and it is not considered to live in different places for the time being
- The boss asked to be foolproof, use the same city dual center

边栏推荐
- 零基础想自学软件测试,有没有大佬可以分享下接下来的学习书籍和路线?
- 【勇敢饭饭,不怕刷题之链表】链表中有环的问题
- 今天面了个腾讯拿38K出来的大佬,让我见识到了基础的天花板
- 什么是抽象类
- 2023版揽胜运动曝光,安全、舒适一个不落
- Store limited time seckill function system
- Emulate stm32 directly with proteus - the programmer can be completely discarded
- Codeforces 862 C. Mahmoud and Ehab and the xor (技巧)
- C#实战:基于ItextSharp技术标签生成小工具
- 建校仅11年就入选“双一流” ,这所高校是凭什么做到的?
猜你喜欢

用proteus直接仿真stm32-可以完全丢弃编程器

In August the DB list latest scores - database Engines

mysql出现:ERROR 1524 (HY000): Plugin ‘123‘ is not loaded

从脚本到剪辑,影像大师亲授的后期制作秘籍

Nocalhost - 让云原生时代的开发更高效
![[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists](/img/06/9d49fc99ab684f03740deb2abc38e2.png)
[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists

3 injured in 'electrical accident' at Google data center

AUTOCAD - reducing spline curve control points, the advanced CAD practice (3)

What is an abstract class

第2章-矩阵及其运算-矩阵运算(2)
随机推荐
什么是抽象类
L2 applications from a product perspective: why is it a playground?
mysql appears: ERROR 1524 (HY000): Plugin '123' is not loaded
使用.NET简单实现一个Redis的高性能克隆版(六)
【TypeScript】接口类型与类型别名:这两者的用法与区别分别是什么?
为什么Redis很快
第二十二章 源代码文件 REST API 参考(四)
Gold, nine, silver and ten job-hopping seasons: technical interview questions and answers on Alibaba, Baidu, JD.com, and Meituan
软件架构简介
CodeChef STMRRG String Merging (dp)
STM32封装ESP8266一键配置函数:实现实现AP模式和STA模式切换、服务器与客户端创建
CPU多级缓存与缓存一致性
OSSCore 开源解决方案介绍
[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists
阻塞 非阻塞 poll机制 异步
什么是幂等性?四种接口幂等性方案详解!
实现内网穿透的最佳解决方案(无实名认证,完全免费)
【勇敢饭饭,不怕刷题之链表】链表反转的几种情况
开发模式对测试的影响
自媒体爆款标题怎么写?手把手教你写热门标题