Micro-services is a lightweight architecture consisting of multiple sets of modules Each module is a service with an independent software development lifecycle and environment.Each service can be easily implemented using a separate programming language.Modification and scaling,services are interdependent and have low coupling,communicating through the lightweight protocol RESTful API style.At present,many enterprises are moving from single architecture to micro-service architecture.There are many researches on architecture transformation,but there are still some problems,including the complicated resources(business code,business process,system description file,etc.)from the single architecture.The accurate positioning is the micro-service identification input resource;how to identify the micro-service to ensure good recognition accuracy;how to determine the granularity of the micro-service and ensure the low coupling of the micro-service,which directly affects the performance and scalability of the micro-service architecture.In order to solve the problem of micro-service identification during the transition from monolithic architecture to micro-service architecture,this paper proposes a micro-service identification method based on multi-objective attributes.Aiming at the design quality problem of micro-service architecture,an evaluation model suitable for micro-service architecture design is proposed.Aiming at the problem of micro-service identification from single architecture to micro-service architecture,a prototype tool supporting micro-service identification is developed.The main work is as follows:(1)Aiming at the micro-service identification problem in the process of single architecture turning to micro-service architecture,a micro-service identification method based on multi-objective attributes is proposed.The method identifies micro-services with suitable granularity,low coupling,high cohesion and high reusability on the basis of ensuring accuracy.Using business processes as resource inputs,decomposing business processes to obtain business activities;constructing business activity dependency matrices based on flow dependencies and data dependencies between business activities;and clarifying core business activities,using graph theory to partition business activities;Finally,the micro-service candidate results are optimized based on the target attributes.(2)For the design quality problem of micro-service architecture,an evaluation model suitable for micro-service architecture design is proposed.The model evaluates the architecture design of micro-services from the aspects of granularity,coupling,cohesion,and reusability of micro-services.Support for quantitative calculation of quality attributes.A comprehensive assessment of the overall architecture is accomplished by assigning weights to the quality attributes.(3)Develop a prototype tool to support micro-service identification for the micro-service identification problem of single architecture turning to micro-service architecture.This tool is intended for use by architects.The tool takes system resources as the inputs;the micro-service candidate set as outputs.An application example is also given.This tool reduces the waste of system resources caused by the identification scheme and improves the efficiency of the architecture migration. |