网络中心性:微服务架构的新视角
Network Centrality as a New Perspective on Microservice Architecture
AI总结:
本研究通过分析24个开源项目的53个微服务,探索网络中心性度量在微服务架构质量评估和反模式检测中的潜力,发现其与传统软件度量相关性弱,提供了新视角。
摘要:
背景:在过去十年中,微服务架构(MSA)的采用催生了多种模式与反模式的识别,如纳米服务、巨型服务和中心服务。检测这些反模式通常需要将系统建模为服务依赖图(SDG),并应用图论方法。目标:虽然先前的研究已探索了软件度量(SMs),如规模、复杂度和质量,用于评估微服务架构,但图特定度量(如网络中心性)的潜力在很大程度上仍未得到探索。本研究调查中心性度量(CMs)是否能提供对微服务架构质量的新见解,并促进架构反模式的检测,从而补充或扩展传统的软件度量。方法:我们分析了24个开源微服务架构项目,重构其架构以研究53个微服务。我们测量了每个微服务的软件度量和中心性度量,并测试了它们之间的相关性,以确定这两类度量之间的关系。结果与结论:在计算的902个度量相关性中,我们发现282个案例呈现弱到中等程度的相关性。这些发现表明,中心性度量为理解微服务架构属性提供了一种新颖的视角。具体而言,基于比值的中心性度量在检测特定反模式方面显示出潜力,而子图中心性在架构评估中的适用性仍需进一步研究。
英文摘要:
Context: Over the past decade, the adoption of Microservice Architecture (MSA) has led to the identification of various patterns and anti-patterns, such as Nano/Mega/Hub services. Detecting these anti-patterns often involves modeling the system as a Service Dependency Graph (SDG) and applying graph-theoretic approaches. Aim: While previous research has explored software metrics (SMs) such as size, complexity, and quality for assessing MSAs, the potential of graph-specific metrics like network centrality remains largely unexplored. This study investigates whether centrality metrics (CMs) can provide new insights into MSA quality and facilitate the detection of architectural anti-patterns, complementing or extending traditional SMs. Method: We analyzed 24 open-source MSA projects, reconstructing their architectures to study 53 microservices. We measured SMs and CMs for each microservice and tested their correlation to determine the relationship between these metric types. Results and Conclusion: Among 902 computed metric correlations, we found weak to moderate correlation in 282 cases. These findings suggest that centrality metrics offer a novel perspective for understanding MSA properties. Specifically, ratio-based centrality metrics show promise for detecting specific anti-patterns, while subgraph centrality needs further investigation for its applicability in architectural assessments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。