arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.14489cs.SE
收藏

一种用于识别低可维护性微服务的基于模糊逻辑的质量模型

A Fuzzy Logic-Based Quality Model For Identifying Microservices With Low Maintainability

Rahime Yilmaz, Feza Buzluca

AI总结:

针对微服务可维护性评估需求,本文参照ISO/IEC 250xy标准提出基于模糊逻辑的分层质量模型,通过模糊化代码度量、评估可修改性与可测试性子特性计算可维护性评分以识别低可维护性微服务,测试集验证其识别准确率达94%、召回率100%,可辅助设计人员评估微服务质量。

摘要:

微服务架构(Microservice Architecture, MSA)是一种流行的架构风格,在可维护性、可扩展性等质量属性方面具备诸多优势。要开发一组能带来预期收益的微服务系统,需要建立基于系统属性度量的质量评估策略。本文提出一种基于模糊逻辑的分层质量模型,参照ISO/IEC 250xy SQuaRE(系统与软件质量要求和评价)标准,对微服务架构的可维护性进行度量与评估。由于底层质量属性的定性边界本身具有模糊性,我们采用模糊化技术将代码度量的精确值转换为模糊等级,并将其作为质量模型的输入。该模型会生成可维护性的两个质量子特性(即可修改性与可测试性)的模糊值,再通过去模糊化将其转换为数值。最后一步,我们利用这两个子特性的数值,计算出受检软件系统中每个微服务可维护性水平的数值评分。该评分用于评估微服务的质量,并判断其是否需要重构。我们通过构建测试集对所提方法进行了评估:三名开发者参与了测试集构建,他们基于自身知识与经验,对一个开源项目中的微服务可维护性水平进行了评审与分类,将微服务标记为低、中、高三个等级,其中低等级表示需要重构。我们的方法在给定测试集中识别低标记微服务的准确率达94%,精确率达78%,召回率达100%。这些结果表明,该方法能够辅助设计人员评估微服务的可维护性质量。

英文摘要:

Microservice Architecture (MSA) is a popular architectural style that offers many advantages regarding quality attributes, including maintainability and scalability. Developing a system as a set of microservices with expected benefits requires a quality assessment strategy that is established on the measurements of the system's properties. This paper proposes a hierarchical quality model based on fuzzy logic to measure and evaluate the maintainability of MSAs considering ISO/IEC 250xy SQuaRE (System and Software Quality Requirements and Evaluation) standards. Since the qualitative bounds of low-level quality attributes are inherently ambiguous, we use a fuzzification technique to transform crisp values of code metrics into fuzzy levels and apply them as inputs to our quality model. The model generates fuzzy values for the quality sub-characteristics of the maintainability, i.e., modifiability and testability, converted to numerical values through defuzzification. In the last step, using the values of the sub-characteristics, we calculate numerical scores indicating the maintainability level of each microservice in the examined software system. This score was used to assess the quality of the microservices and decide whether they need refactoring. We evaluated our approach by creating a test set with the assistance of three developers, who reviewed and categorized the maintainability levels of the microservices in an open-source project based on their knowledge and experience. They labeled microservices as low, medium, or high, with low indicating the need for refactoring. Our method for identifying low-labeled microservices in the given test set achieved 94% accuracy, 78% precision, and 100% recall. These results indicate that our approach can assist designers in evaluating the maintainability quality of microservices.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑