Microservices have been a key architectural approach for over a decade, transforming system design by promoting decentralization and allowing development teams to work independently on specific microservices. While loosely coupled microservices are ideal, dependencies between them are inevitable. Often, these dependencies go unnoticed by development teams. Although syntactic dependencies can be identified, tracking semantic dependencies - when multiple microservices share similar logic - poses a greater challenge. As systems evolve, changes made to one microservice can trigger ripple effects, jeopardizing system consistency and requiring updates to dependent services, which increases maintenance and operational complexity. Effectively tracking different types of dependencies across microservices is essential for anticipating the impact of such changes. This paper introduces the Semantic Dependency Matrix as an instrument to address these challenges from a semantic perspective. We propose an automated approach to extract and represent these dependencies and demonstrate its effectiveness through a case study. This paper takes a step further by demonstrating the significance of semantic dependencies, even in cases where there are no direct dependencies between microservices. It shows that these hidden dependencies can exist independently of endpoint or data dependencies, revealing critical connections that might otherwise be overlooked.
CARGO: AI-Guided Dependency Analysis for Migrating Monolithic Applications to Microservices Architecture
微服务架构(MSA)已成为设计云原生企业应用程序的事实标准,因为它具有高效的基础设施设置、服务可用性、弹性可扩展性、可靠性和更好的安全性。现有的(单体)系统必须分解为微服务来利用这些特性。由于大规模应用程序的手动分解可能很费力且容易出错,因此基于AI的系统检测分解策略越来越受欢迎。然而,这些方法的有用性是有限的程序表示的表现力和他们无法模拟应用程序的依赖于关键的外部资源,如数据库。因此,由当前工具提供的分区建议导致导致(a)分布式整体,和/或(b)强制使用(经常受到批评的)分布式事务的架构。这项工作试图通过引入CARGO({context-sensitive l [A] bel p [R] opa [G] ati [O] n}的缩写)来克服这些挑战,CARGO是一种新的无监督/半监督分区细化技术,其使用单片应用程序的上下文和流敏感系统依赖图来细化并从而丰富当前最先进算法的分区质量。CARGO被用于增强四种最先进的微服务分区技术,这些技术应用于五个Java EE应用程序(包括一个工业规模的专有项目)。实验表明,CARGO可以提高所有现代微服务划分技术的划分质量。此外,CARGO大大减少了分布式事务,对基准应用程序(在不同负载下部署)的真实世界性能评估显示,CARGO还将部署的微服务应用程序的整体延迟降低了11%,平均吞吐量增加了120%。
From Textual Requirements to Microservice Architectures - A Comprehensive Evaluation of LLM-Based Design Synthesis
Federal University of Campina Grande (UFCG)(帕伊巴联邦大学(UFCG));VIRTUS/UFCG;Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)(国家科学技术研究委员会(CONICET));Universidad Nacional del Centro de la Provincia de Buenos Aires (UNICEN)(布宜诺斯艾利斯省中部国立大学(UNICEN));Federal Institute of Pernambuco (IFPE)(伯南布哥联邦学院(IFPE));Rui Barbosa State School(鲁伊·巴尔博萨州立学校)