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.