Font Size: a A A

Research And Application Of Service Division Method For Single Application In Microservice Scenario

Posted on:2021-01-19Degree:MasterType:Thesis
Country:ChinaCandidate:C Q ShangFull Text:PDF
GTID:2518306575955659Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the continuous development and iteration of the business,monolithic applications become larger and larger,and this phenomenon of application complexity over time brings many problems,such as the time for a development and deployment becomes very timeconsuming.The emergence of microservices breaks the dilemma faced by large monolithic applications,but there are also many problems to be solved in the process of transforming from monolithic applications to microservice applications.Identifying microservices from monolithic applications and determining the granularity of microservices are the first step in the transformation process,and also one of the problems that need to be solved most.According to the requirements of "high cohesion and low coupling" in the microservice design principle,the identification and division of services need to put closely related things in the same service as far as possible,and different micro-services only interact with each other through a small amount of information.In order to solve the quantitative method of micro service division of excessive dependence on individual factors,based on graph clustering algorithm classified on the basis of micro service,put forward a way of quantitative graph structure to establish,the basic idea is to use the method of logic analysis from the monolithic applications abstract nodes,function modules,the physical nodes and resources as a graph clustering algorithm is used in the node,and then according to certain rules to establish the relationship between the various nodes and weights,namely the edge information in the graph,with four kinds of graph nodes and relationships to describe the internal structure of whole system and the complexity,finally choosing appropriate community discovery algorithm for clustering figure structure,The nodes with high correlation were divided into the same class,and the result of such division was taken as the reference for the division of microservices.The nodes of the same class were divided into the same microservice.Using the above method,to a large open source Internet micro electric business projects for the services division,in the coupling,cohesion,code redundancy rate on indicators such as compared with the division of the current mainstream method,the results show that the method can better satisfy the service design principles,get accurate micro service division as a result,not only can be better applied to the mainstream of software project,and refactoring in the system can effectively reduce development costs.
Keywords/Search Tags:Monolithic application, Microservice, Service decomposition, Graph clustering
PDF Full Text Request
Related items