The "Microservices" architecture is the recently popular concept in software applications.From a technical perspective,a large number of open source lightweight technologies of the Internet and cloud computing continue to emerge and mature gradually,which has given rise to a new architecture design style:micro-service architecture.The development under the framework of Microservices is independent,both high cohesion and less coupling between modules,while with good scalability.This will greatly speed up the business development,delivery to the market as soon as possible.Based on the architecture of Microservices,this paper analyzes the requirements of interactive applications developments and design micro-services modules on the server side,including separates the corresponding micro-services modules;with the purpose of high performance and stability,design and implement the key part of service logic.The main research contents are as follows:1)Describe interactive application developing requirements,considering mass data,service’s stability and disaster recovery.Discuss the design principles of microservices architecture,and study related technologies,including Restful API,database,cache,and asynchronous message queue.2)Design backend micro-service modules,and implement some key result while based on microservices architecture.The micro-service modules can be separate as follow:query service,submit service,user service.In the specific implementation of the module,the key points of design are data persistence storage,cache design and asynchronous message queue.3)Implement micro-services module related functions,test services function and performance,draw the data charts and do some analysis.Microservices architecture allows developers to split the common functional modules accurately,while the developments of modules are high cohesion less coupling,and each module only focus on their own unique features.It supports expansion,which can be considered as a more flexible architecture.Based on microservices architecture,this paper designs and implements backend macro-service modules which support high-concurrency performance on interactive applications. |