| In recent years,with the rapid development of the Internet,the number of ecommerce website users has continued to rise.In the era of the epidemic,the demand for fresh food e-commerce platforms has become more prominent.It is necessary to quickly develop a fresh e-commerce platform for small and medium-sized enterprises.It can also cope with the situation of a large number of users in closed communities shopping at the same time and the resulting maintenance costs.This paper proposes a B2C(Business-to-Consumer e-commerce model)fresh e-commerce system based on SSM framework(Spring+Spring MVC+My Batis)technology and service-oriented distributed clustering technology.The main work includes:(1)The use of Spring+Spring MVC+Mybatis framework integration divides the entire system into three layers to improve development efficiency.Shorten the development cycle and save development costs.It is convenient for later maintenance and update expansion of the system.(2)Use a service-oriented distributed architecture to split a system into multiple subsystems that operate independently by functional modules.Separate the presentation layer and service layer of each subsystem,extract all services and distribute them for reusability calls of other systems.The service-oriented distributed cluster architecture increases or decreases the number of servers of each module according to the concurrency of a functional module.The system can handle 2000 concurrent users.Able to solve high concurrency problems and low-cost maintenance requirements;At the same time,it also has good system scalability and robustness.(3)Build a cache layer Redis between the service layer and the database layer,and use Redis sharding cluster to make page data persistent cache.Decentralized storage of redis(Remote Dictionary Server)non-relational database data reduces database access pressure and improves page access efficiency.When the concurrent browsing of the homepage of this system is 2000,the average response time of each user is within 2s.(4)The functions implemented by the system include: front-end page product display,product search,shopping cart,registration and login,order submission,and payment functions.Back-office pages manage product information and manage front-end content. |