首页|基于微服务的中小型B2C电商抢购系统的设计与实现

基于微服务的中小型B2C电商抢购系统的设计与实现

扫码查看
限时抢购等促销活动产生的峰值流量导致电商系统出现系统崩溃、响应缓慢等问题,需要在资源有限情况下提高系统对峰值流量的承载能力,并保证限时抢购活动进行时数据的一致性.通过微服务架构提高系统对峰值流量的承载能力需要将原有的单体架构电商系统按功能拆分成若干个微服务,以降低代码耦合度,并解决峰值流量下的商品超卖问题.论文首先设计了系统微服务架构以实现系统的水平扩展;在解决方案中,使用Redis哨兵模式分布式缓存集群提高系统对于峰值流量的承载能力;并根据Redis单线程执行命令的特性解决限时抢购过程中商品超卖问题.
Design and Implementation of a Small and Medium B2C E-commerce Rush Purchase System Based on Microservices
The peak traffic generated by promotional activities such as limited time flash sales leads to system crashes and slow responses in the e-commerce system.It is necessary to improve the system's carrying capacity for peak traffic under limited resources and ensure the consistency of data during limited time flash sales activities.Improving the system's carrying capacity for peak traffic through microscrvice architecture requires breaking down the original single archi-tecture e-commerce system into several microservices based on functionality,in order to reduce code coupling and solve the problem of oversold products under peak traffic.The paper first de-signs a system microservice architecture to achieve horizontal scalability of the system;In the so-lution,use Redis Sentinel mode distributed cache cluster to improve the system's carrying capaci-ty for peak traffic;And based on the characteristics of Redis single thread command execution,solve the problem of product oversold during the limited time flash sale process.

MicroservicesFlash SaleCache

梁自豪、荆浩、李雪源

展开 >

中国航空工业集团公司西安航空计算技术研究所,陕西陕西 710065

微服务 限时抢购 缓存

2024

长江信息通信
湖北通信服务公司

长江信息通信

影响因子:0.338
ISSN:2096-9759
年,卷(期):2024.37(4)
  • 10