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

将单体应用程序分解为微服务的特征表方法

A Feature Table approach to decomposing monolithic applications into microservices

Yuyang Wei, Yijun Yu, Minxue Pan, Tian Zhang

摘要:

微服务架构是指使用大量小规模和独立部署的服务,而不是将所有功能封装到一个整体中。如何将一个大系统分解成更小的部分一直是软件工程中的一个挑战。在本文中,我们提出了一种基于功能特征和微服务相关性的结构化服务分解方法--特征表方法:(1)定义了{ \em特征卡}的概念和12个实例;(2)制定了{ \em分解规则}来分解单体应用;(3)我们设计了{ \em特征表分析工具},为识别微服务提供半自动分析;(4)我们制定了{ \em映射规则},帮助开发人员实现微服务候选。我们对货物跟踪系统进行了案例研究,以验证我们的面向微服务的分解方法。货物跟踪系统是一个典型的案例,已经被分解的其他相关方法(流程驱动的方法,服务切割器,和API分析)。通过与相关方法在具体耦合度和内聚度方面的比较,结果表明,所提出的特征表方法可以提供更合理的微服务候选,在半自动支持下实现是可行的。

英文摘要:

Microservice architecture refers to the use of numerous small-scale and independently deployed services, instead of encapsulating all functions into one monolith. It has been a challenge in software engineering to decompose a monolithic system into smaller parts. In this paper, we propose the Feature Table approach, a structured approach to service decomposition based on the correlation between functional features and microservices: (1) we defined the concept of {\em Feature Cards} and 12 instances of such cards; (2) we formulated {\em Decomposition Rules} to decompose monolithic applications; (3) we designed the {\em Feature Table Analysis Tool} to provide semi-automatic analysis for identification of microservices; and (4) we formulated {\em Mapping Rules} to help developers implement microservice candidates. We performed a case study on Cargo Tracking System to validate our microservice-oriented decomposition approach. Cargo Tracking System is a typical case that has been decomposed by other related methods (dataflow-driven approach, Service Cutter, and API Analysis). Through comparison with the related methods in terms of specific coupling and cohesion metrics, the results show that the proposed Feature Table approach can deliver more reasonable microservice candidates, which are feasible in implementation with semi-automatic support.

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

↑