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

微服务的结构耦合

Structural Coupling for Microservices

Sebastiano Panichella, Mohammad Imranur Rahman, Davide Taibi

AI总结:

本文通过扩展传统结构耦合概念,提出计算和可视化微服务间耦合的方法,并通过17个开源项目验证,为从业者提供定量与可视化的服务组合视图。

摘要:

云原生应用是“由(微)服务组成的分布式、弹性且可水平扩展的系统,这些服务在最少的有状态组件中隔离状态”。因此,一个重要属性是确保组成云原生应用的(微)服务之间具有低耦合和高内聚。松耦合且高内聚的服务允许开发团队并行工作,减少团队间的通信开销。然而,尽管从业者和研究人员都认同这一通用属性的重要性,但目前没有经过验证的指标来有效测量或测试服务之间的实际耦合程度。在本研究中,我们通过扩展和调整传统结构耦合计算背后的概念,提出了计算和可视化微服务之间耦合的方法。我们通过涉及17个开源项目的案例研究验证了这些度量,并提供了一种自动测量它们的方法。本研究的结果强调了这些指标如何为从业者提供服务组合的定量和视觉视图,这对于构思监控系统服务演进的高级系统非常有用。

英文摘要:

Cloud-native Applications are 'distributed, elastic and horizontal-scalable systems composed of (micro)services which isolate states in a minimum of stateful components'. Hence, an important property is to ensure a low coupling and a high cohesion among the (micro)services composing the cloud-native application. Loosely coupled and highly cohesive services allow development teams to work in parallel, reducing the communication overhead between teams. However, despite both practitioners and researchers agree on the importance of this general property, there are no validated metrics to effectively measure or test the actual coupling level between services. In this work, we propose ways to compute and visualize the coupling between microservices, by extending and adapting the concepts behind the computation of the traditional structural coupling. We validate these measures with a case study involving 17 open-source projects and we provide an automatic approach to measure them. The results of this study highlight how these metrics provide to practitioners a quantitative and visual view of services compositions, which can be useful to conceive advanced systems to monitor the evolution of the service.

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

↑