Font Size: a A A

The Design And Implementation Of The Architecture Diagnosis Platform Based On Microservice Topology

Posted on:2022-05-08Degree:MasterType:Thesis
Country:ChinaCandidate:C DengFull Text:PDF
GTID:2518306725983929Subject:Master of Engineering (field of software engineering)
Abstract/Summary:PDF Full Text Request
With the continuous development of software technology,the traditional monolithic architecture is difficult to meet the challenges brought by the increasing business requirements to the software system.Therefore,the microservice architecture has emerged and become the preferred architecture for major Internet companies when developing software system.The design concept of the microservice architecture is to split a large software system into multiple smaller-grained services according to the business domain boundary based on the principle of single responsibility.In the development process,each service focuses on a specific business function,a group of services can be selected according to business requirements and combined into a system with complete functions,and different services can be developed and maintained by different teams.Each team can use different technical frameworks to realize the functions of the service according to the characteristics of the project and the team situation.In the microservice architecture,the services are communicated mainly through lightweight interfaces,achieving the design concept of high cohesion and low coupling.Microservice architecture provides many conveniences for software development and solves a series of problems of traditional monolithic architecture.However,this new architectural style also brings many challenges and issues,such as the communication cost between processes,the handling mechanism for service failures,the consistency of distributed transactions,the cost of service deployment and management,and the cost of integration testing.At the same time,with the rapid development of business,the complexity of the system gradually increase,microservices are released more and more frequently,the call relationship between each microservice is gradually becoming complicated,and the call chain is getting deeper and deeper.The boundaries of services have gradually become blurred.So far,microservice governance has become a thorny issue for software developers.This thesis elaborated on the solution of the architecture diagnosis platform based on microservice topology data and described the core design and implementation of the platform.With the help of graph database,the platform performs multi-dimensional analysis on the topological data of the microservice call chain and provides each development team with the ability to identify service architecture risks.The project manager will receive the risk push in the form of a problem ticket.In terms of architecture,this platform can be divided into five main modules: project management module,call chain processing module,diagnosis operator module,diagnosis result module and TAPD problem ticket module.Each business team accesses the platform through the project management module.The call chain processing module will obtain the call chain topology data of each service and store it into the graph database.The diagnostic operator module will execute the query from the graph database to identify the problem,store the diagnosis result with the help of the diagnosis result module.The creation and follow-up of the problem ticket will be completed through the TAPD problem ticket module,thus realizing the closed loop of the diagnosis process.The architecture diagnosis platform is developed based on the RPC framework Tencent RPC developed by Tencent,realizes the update and push of service dynamic configuration items through the self-developed distributed dynamic configuration center,and uses CKafka to transfer messages between systems,so that the system has high scalability.The platform uses the TGDB graph database to store and query the service topology,so that the system can support real-time query of large-capacity relational data and improve the reliability of the system.In addition,the platform effectively reduces the threshold for business parties through simplified access procedures and clear interface interactions,ensuring the ease of use of the system.At present,many projects within Tencent have connected to the architecture diagnosis platform.The platform has effectively improved the availability,stability,maintainability and other characteristics of the services.
Keywords/Search Tags:Architecture Diagnosis, Microservice, Service Governance, Topology, Graph
PDF Full Text Request
Related items