arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.07010cs.SE
收藏

一种用于从单体应用中提取微服务的层次化DBSCAN方法

A Hierarchical-DBSCAN Method for Extracting Microservices from Monolithic Applications

Khaled Sellami, Mohamed Aymen Saied, Ali Ouni

AI总结:

本文提出一种基于层次化DBSCAN的方法,通过分析单体应用源代码中的类交互和领域术语来提取微服务,实验表明其生成的微服务内聚性更高、交互更少,精确率最高达0.9。

摘要:

微服务架构风格具有可扩展性、可复用性和易于维护性等许多优点。因此,微服务已成为开发新应用时常见的架构选择。为了从这些优点中获益,单体应用需要被重新设计,以便迁移到基于微服务的架构。由于这一过程固有的复杂性和高昂成本,自动化该任务至关重要。在本文中,我们提出了一种能够从给定的单体应用中识别潜在微服务的方法。我们的方法以源应用的源代码为输入,利用系统中所有类之间的交互以及代码中使用的领域术语来衡量它们之间的相似性和依赖关系。然后,这些相似度值与一种基于密度的聚类算法的变体一起使用,以生成推荐微服务的层次结构,同时识别潜在的离群类。我们通过不同的实验设置对我们的方法进行了实证评估,包括与现有的人工设计微服务进行比较,以及与5个基线进行比较。结果表明,与人工设计的微服务相比,我们的方法成功生成的微服务总体上具有更高的内聚性,并且它们之间的交互更少,精确率得分最高可达0.9。

英文摘要:

The microservices architectural style offers many advantages such as scalability, reusability and ease of maintainability. As such microservices has become a common architectural choice when developing new applications. Hence, to benefit from these advantages, monolithic applications need to be redesigned in order to migrate to a microservice based architecture. Due to the inherent complexity and high costs related to this process, it is crucial to automate this task. In this paper, we propose a method that can identify potential microservices from a given monolithic application. Our method takes as input the source code of the source application in order to measure the similarities and dependencies between all of the classes in the system using their interactions and the domain terminology employed within the code. These similarity values are then used with a variant of a density-based clustering algorithm to generate a hierarchical structure of the recommended microservices while identifying potential outlier classes. We provide an empirical evaluation of our approach through different experimental settings including a comparison with existing human-designed microservices and a comparison with 5 baselines. The results show that our method succeeds in generating microservices that are overall more cohesive and that have fewer interactions in-between them with up to 0.9 of precision score when compared to human-designed microservices.

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

↑