| With the vigorous development of China’s Internet information technology revolution and e-commerce,more Chinese consumers have become accustomed to online shopping.The goods sold by various e-commerce platforms have covered all aspects of daily life,but for consumers,buying the quality of the products received is uneven,and there is no perfect after-sales service.For enterprises,entering the e-commerce platform needs to bear additional costs,especially for small and micro-enterprises.The popularity of WeChat mini-programs and cloud computing has created the possibility for small and micro-enterprises to sell goods and provide services at low cost and high efficiency.Small and micro-enterprises can develop lightweight e-commerce systems through WeChat mini-programs,and users can use the programs without installing an app.Thanks to WeChat’s huge user base,small and micro-enterprises can promote their products through social networks and reduce advertising and marketing costs.The main task of this paper is to design and implement e-commerce based on Flink.E-commerce not only has most of the functions of an online shopping website but also supports real-time computing services,providing users with real-time popular functions to increase sales.The overall system adopts a layered architecture,using Spring Boot as the basic development framework,using Kafka and Zookeeper as the message system,using Apache Flink as the real-time computing engine,using MySQL and MyBatis framework to store e-commerce data,and using Redis as the system cache.This paper analyzes the services that the system must provide for users,as well as the system attributes of reliability,security and availability,and completes the system design from three aspects.First,the components and interaction methods of the system are designed,and then the functions provided by the system It is divided into independent modules.Finally,a reasonable and easy-to-maintain database is designed.Through detailed design and implementation,the logical structure of each functional module is designed and the module code is written.Finally,a comprehensive and complete test is carried out on the shopping subsystem that has been successfully implemented.The system is improved by analyzing the test results,so that the system meets the design requirements,and each functional module can run normally and perform well.The shopping subsystem implemented in this paper is already running,and the system supports the user center function.Consumers can log in to the system through the user authentication function of the WeChat applet,support real-time popular functions,and can count popular products in real time and display them on the system page.It provides important support for grasping consumer dynamics and improving product sales,using caching technology to shorten response time and improve user satisfaction. |