| With the continuous improvement of people’s living standards and consumption levels,as well as the continuous improvement and development of third-party payment tools,the domestic e-commerce platform environment has become increasingly mature,and online shopping has become an important content in people’s daily lives.E-commerce platforms such as Taobao and JD have been integrated into all aspects of people’s lives.With business expansion and demand iteration,e-commerce platforms often need more and more functions to provide support.For the monolithic architecture adopted by the traditional e-commerce platform,in the early stage of the development of the project,when the business functions are less and the code is not too complicated,since all the back-end business logic is concentrated in one application,the development and testing process is relatively simple,but With the expansion of functions and the continuous iteration of business requirements,monolithic applications will become more and more complex.In the end,the project’s problems in new functions,maintenance and upgrades,etc.will gradually become prominent and become more serious.For the above-mentioned demand and pain points,this paper designs and implements an e-commerce platform based on the micro-service architecture.According to the idea of microservice architecture,the whole system is divided into nine microservices.These microservices are developed and deployed individually.Thereby reducing the degree of coupling between modules,achieving module logic clarity and high-quality code development,while also accelerating the speed of continuous delivery,improving the scalability of the system,and reducing the difficulty of replacing technology.This article first introduces the functional modules of each microservice in the form of UML use case diagrams combined with text descriptions.At the same time,considering the needs of the platform itself,the non-functional requirements of the system are explained.Then,according to the content that needs to be analyzed,the overall function of the platform is explained through the functional structure diagram,the platform architecture diagram is used to show the construction method of the microservice architecture,and the ER diagram is used to expand the connection between the various entities in the platform,so as to Build a database to lay the foundation,and complete the outline design of the system through the above techniques.Then,according to the content of the demand analysis and system outline design,technologies such as the SSM framework,the Vue framework,the SpringCloud microservices technoiques are adopted,and the recommendation algorithm is also used to optimize the user experience,thus realizing an e-commerce platform based on the microservice architecture.Finally,the black box test method is used to perform functional tests on all functions of the system,and the test results are explained and summarized.At the same time,non-functional testing of the platform takes into account the non-functional requirements to ensure the high performance,reliability and stability of the platform.After pre-development and complete testing of the platform,the e-commerce platform based on the micro-service architecture can run reliably in different environments,and the various micro-service modules can also cooperate normally to complete individual tasks and collaborative tasks.The e-commerce platform can satisfy three types of users,buyers,merchants,and back-end managers,in an environment of high concurrency and massive data. |