| With the rapid development of the Internet in the field of leisure and entertainment,social networking platforms and e-comerce,so the continuous development and iteration of various applications.On the one hand,the continuous changes of Internet requirements,with complex and varied features,the cost of migration of data and modules between systems is also getting higher and higher.This makes the various applications and platforms in the market for users and data acquisition.The requirements for speed and fluency are getting higher and higher.On the other hand,the scale of users is also growing.For the role of the front-end that directly communicates with users directly,how to more efficiently manage resource has also become an aspect that needs to be optimized.In terms of above problems,there have been some researches on relevant architectures and frameworks,but there are still some problems and limitations in these architectures.For example,the front-end and back-end cannot be completely separated,and the data is completely rendered by the browser.The reuse of components of the system ignores the importance of the front-end operation and maintenance layer.Therefore,a solution to the front-end architecture is urgently needed to solve the above problems.This paper fully investigates the current status of microservices,the status of the front-end architecture and the status of componentization,analyzes and summarizes the deficiencies in its design and other aspects,and combines and applies microservice design ideas to the front-end architecture.A microservice-based front-end architecture is divided into a Node middle layer,a web application layer,and a front-end operation and maintenance layer.The Node service layer serves as the middle layer between the backend server and the front end.Its main functions are data proxy,server rendering,and route distribution.The web application mainly proposed to use MDV to establish a "tree" model.The front-end operation and maintenance layer mainly completes project construction and deployment,automated testing,and performance monitoring services.By combing the requirements of the microservice front-end architecture and analyzing the key technologies in the architecture,then using key technologies to apply and implement the functions of each layer in the front-end architecture,a framework-based front-end development specification and component library are proposed.Apply the architecture to the actual project and verify die applicability and scalability of the architecture. |