基于图神经网络的重构Monolith算法
Graph Neural Network to Dilute Outliers for Refactoring Monolith Application
摘要:
微服务正在成为软件架构的实际设计选择。它涉及将软件组件划分为更精细的模块,以便开发可以独立进行。当部署在云上时,它还提供了自然的好处,因为资源可以根据需求动态分配给必要的组件。因此,作为其云之旅的一部分,企业越来越多地寻求将其单体应用重构为一个或多个候选微服务;其中每个服务包含一组软件实体(例如,类)负责公共功能。图形是表示软件系统的自然选择。每个软件实体可以表示为节点,其与其他实体的依赖关系表示为链接。因此,这个重构问题可以被看作是一个基于图的聚类任务。在这项工作中,我们提出了一种新的方法来适应图神经网络的最新进展,在代码的上下文中,以更好地理解软件,并将其应用于聚类任务。在这个过程中,我们还识别了图中的异常值,这些异常值可以直接映射到软件中的顶级重构候选者。与软件工程和现有的基于图形表示的技术相比,我们的解决方案能够提高最先进的性能。
英文摘要:
Microservices are becoming the defacto design choice for software architecture. It involves partitioning the software components into finer modules such that the development can happen independently. It also provides natural benefits when deployed on the cloud since resources can be allocated dynamically to necessary components based on demand. Therefore, enterprises as part of their journey to cloud, are increasingly looking to refactor their monolith application into one or more candidate microservices; wherein each service contains a group of software entities (e.g., classes) that are responsible for a common functionality. Graphs are a natural choice to represent a software system. Each software entity can be represented as nodes and its dependencies with other entities as links. Therefore, this problem of refactoring can be viewed as a graph based clustering task. In this work, we propose a novel method to adapt the recent advancements in graph neural networks in the context of code to better understand the software and apply them in the clustering task. In that process, we also identify the outliers in the graph which can be directly mapped to top refactor candidates in the software. Our solution is able to improve state-of-the-art performance compared to works from both software engineering and existing graph representation based techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。