With the large-scale popularization of the Internet and the Chinese government’s promotion of the "Internet +" concept in recent years,e-commerce has gradually entered people’s horizons and has developed rapidly,becoming an indispensable part of people’s lives.But it hinders the development of e-commerce.In order to facilitate people’s shopping and improve the performance of application systems,it is of great practical significance and application value to develop and design an online shopping system that can have the basic functions of an e-commerce website and can support more throughput.The online shopping system is established using the B/S architecture and the classic MVC model design,which makes the code parts clear and decoupled.The system uses Spring Boot to quickly build Maven project and integrate Spring MVC and My Batis framework technology.The project builds quickly,simplifies configuration,and implements unified package management for projects to improve development efficiency.Using Nginx,Redis and Eh Cache technologies to build a system’s cache architecture.Nginx is responsible for traffic distribution and provides hotspot caching.Redis builds clusters to form distributed caches to improve system throughput and response speed.It also uses Storm technology to calculate commodity access frequency in real time and respond to hot items more quickly.The functional module diagram,timing diagram and class diagram are used to show the detailed design of each function module of the system,and the relationship and attributes between the entities are displayed by E-R diagram,and the effect of the system function module is demonstrated by using the flowchart rendering.In order to reduce the system overhead more reasonably,the dimension of the different features of the commodity is divided,and the data with low timeliness is asynchronously updated by the message middleware,and the data with higher timeliness is updated by the double buffer of database cache.The online shopping system reduces labor maintenance costs,improves the efficiency of commodity trading and management,and uses distributed technology to increase system throughput.At present,the system is running normally,and even during peak hours,various requests can be processed normally,and the response is quickly responded to the user. |