单块微服务识别的代码矢量化和访问顺序策略
Code Vectorization and Sequence of Accesses Strategies for Monolith Microservices Identification
摘要:
将单体应用程序迁移到微服务架构中可以受益于自动化方法,这些方法可以加快迁移并改善分解结果。当前指导软件架构师进行迁移的方法之一是使用单体功能对域实体的访问序列将单体域实体分组为微服务。在本文中,我们丰富的访问序列的解决方案,通过应用代码向量化的单片,使用\textit{Code2Vec}神经网络模型。我们应用\textit{Code2Vec}来矢量化整体功能。我们提出了两种策略来表示功能,一个是通过聚合其调用图方法向量,另一个是通过扩展访问实体的向量化访问方法的序列。为了评估这些策略,我们将所提出的策略与访问策略的顺序和使用类向量化的现有方法进行比较。我们在一个大的代码库集上运行所有这些策略,然后比较它们的内聚性,耦合性和复杂性分解的结果。
英文摘要:
Migrating a monolith application into a microservices architecture can benefit from automation methods, which speed up the migration and improve the decomposition results. One of the current approaches that guide software architects on the migration is to group monolith domain entities into microservices, using the sequences of accesses of the monolith functionalities to the domain entities. In this paper, we enrich the sequence of accesses solution by applying code vectorization to the monolith, using the \textit{Code2Vec} neural network model. We apply \textit{Code2Vec} to vectorize the monolith functionalities. We propose two strategies to represent a functionality, one by aggregating its call graph methods vectors, and the other by extending the sequence of accesses approach with vectorization of the accessed entities. To evaluate these strategies, we compare the proposed strategies with the sequence of accesses strategy and an existing approach that uses class vectorization. We run all these strategies over a large set of codebases, and then compare the results of their decompositions in terms of cohesion, coupling, and complexity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。