节点文献
部署态微服务架构质量评估系统的设计与实现
Design and Implementation of Quality Assessment System for Deployed Microservice Architecture
【作者】 胡鹏;
【作者基本信息】 东南大学 , 软件工程(专业学位), 2022, 硕士
【摘要】 近些年来,微服务架构作为一种新型的软件架构,具有低耦合、易封装、独立部署和便于扩展等特点,逐渐成为解决日益复杂的软件需求的首选方案之一。但是随着微服务系统的复杂度提升,对微服务系统进行分析和验证遇到了困难,尤其是微服务架构自身的独特性以及复杂性使得传统的软件架构质量评估方法难以对微服务架构进行准确地度量和评估,因此面向微服务架构的质量评估工作愈发重要。为了能够有效地评估微服务架构,指导微服务项目的开发和维护活动,本文设计并实现了一个微服务架构质量评估系统。该系统基于微服务架构的特征,从源代码中提取与微服务特征相对应的关键信息并进行评估,以支持微服务架构的分析和理解。本文的主要工作贡献包括如下四个方面:(1)微服务架构的特征提取方法。本文通过将微服务架构与其他架构进行对比分析,归纳出微服务架构较为显著的特征,并构建出微服务架构的特征表示树,有效地对服务内特征以及服务间特征进行了表示。(2)微服务架构的架构恢复方法。基于微服务架构的特征,本文给出了一系列与特征相关的静态恢复方法,能够尽可能地从项目源代码中提取出关键信息。通过将对开源项目的恢复结果与实际情况进行对比和分析,验证了架构恢复信息的准确性。(3)微服务架构的质量评估方法。根据架构恢复得到的信息,结合一些先进的质量评估理论,研究微服务架构需要关注的质量属性以及相应的评估方法,给出了针对可用性、适应性以及安全性等质量属性的度量公式和评估方法。(4)微服务架构质量评估系统的设计与实现。基于微服务架构的架构恢复方法和质量评估方法,本文设计了微服务架构质量评估系统的各个模块,实现了对微服务项目源代码进行自动化评估的完整过程。通过对10个不同类型开源项目的评估结果进行分析,验证了系统的有效性。测试结果表明,系统在评估微服务项目时能够正常完成功能,保证评估的可靠性和正确性;架构恢复具有较高的精度,能够准确反映微服务系统的真实架构结构、接口和模块等信息;评估过程能够在5秒内完成,具有较好的性能,能够在实际评估场景中提供实用性较高的结果。
【Abstract】 In recent years,microservice architecture,as a new software architecture,has the characteristics of low coupling,easy packaging,independent deployment and easy expansion,and has gradually become one of the preferred solutions to solve increasingly complex software requirements.But as the complexity of the micro service systems,analyze the micro service system and verify the difficulties,especially the uniqueness and complexity of the service architecture itself makes it hard for traditional software architecture evaluation methods to accurately measure and assess the micro service architecture,so the quality of the microservice oriented architecture evaluation becomes increasingly important.In order to effectively evaluate microservice architecture and guide the development and maintenance of Microservice projects,this thesis designs and implements a quality evaluation system for microservice architecture.Based on the characteristics of microservices architecture,the system extracts and evaluates the key information corresponding to the characteristics of microservices from the source code to support the analysis and understanding of microservices architecture.The main contributions of this thesis include the following four aspects:(1)Feature extraction method of microservice architecture.By comparing microservice architecture with other architectures,this thesis summarizes the more significant features of microservice architecture,and constructs the feature representation tree of microservice architecture,which effectively represents the intra-service features and inter-service features.(2)An architectural recovery approach for microservice architectures.Based on the characteristics of microservices architecture,this thesis presents a series of feature-related static recovery methods,which can extract key information from the project source code as much as possible.Finally comparing and analyzing the recovery results of open source projects with the actual situation,the accuracy of architecture recovery information is verified.(3)Quality assessment methods for microservices architecture.Based on the information recovered from the architecture and combined with some advanced quality assessment theories,the quality attributes that the microservice architecture needs to pay attention to and the corresponding assessment methods are studied.Finally,the measurement formula and evaluation method for quality attributes such as availability,adaptability and safety are given.(4)Design and implementation of microservice architecture quality assessment system.Based on the restoration method and quality evaluation method of microservice architecture,this thesis designs each module of microservice architecture quality evaluation system,and realizes the complete process of automatic evaluation of microservice project source code.Finally,the effectiveness of the system is verified by analyzing the evaluation results of 10 different types of open source projects.The test results show that the system can complete the function normally when evaluating the microservice project,and ensure the reliability and correctness of the evaluation.Architecture recovery has high precision,and can accurately reflect the real architecture structure,interface and module information of the microservice system.The evaluation process can be completed in less than 5 seconds with good performance and can provide practical results in real evaluation scenarios.
- 【网络出版投稿人】 东南大学 【网络出版年期】2024年 02期
- 【分类号】TP311.52