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

微服务中的多语言持久化:管理分布式系统中的数据多样性

Polyglot Persistence in Microservices: Managing Data Diversity in Distributed Systems

Festim Halili, Anila Nuhiji, Diellza Mustafai Veliu

AI总结:

本文研究微服务中的多语言持久化,通过比较框架和行业案例评估多种数据库,指出其提升适应性与性能,但增加治理复杂度,并提出Saga等模式应对权衡。

摘要:

微服务架构已成为开发可扩展的现代软件系统的基础,但它们也带来了管理异构和分布式数据的重大挑战。务实的解决方案是多语言持久化,即有意使用多种不同的数据库技术以适应特定的微服务需求,这是一种策略。本文考察了基于微服务的系统中的多语言持久化。本文结合了理论概念、实际实施中的证据以及标准数据库平台的比较基准。本文应用一个比较框架,对关系型、文档型、键值型、列族型和图数据库进行评估,以衡量可扩展性、一致性、查询表达力、运维开销和集成便捷性。来自Netflix、Uber和Shopify等行业案例研究的实证数据以及调查数据展示了现实中的采用趋势和挑战。这些发现表明,多语言持久化提高了适应性、性能和领域对齐,但也增加了治理或运维复杂性。为应对这些权衡,本文讨论了诸如Saga工作流、事件溯源和Outbox集成等架构模式。

英文摘要:

Microservices architectures have become the foundation for developing scalable and modern software systems, but they also bring significant challenges in managing heterogeneous and distributed data. The pragmatic solution is polyglot persistence, the deliberate use of several different database technologies adapted to a given microservice requirement - is one such strategy. This paper examines polyglot persistence in microservice based systems. This paper brings together theoretical concepts with evidence from practical implementations and comparative benchmarks of standard database platforms. A comparative framework is applied to relational, document, key-value, column-family and graph databases to assess scalability, consistency, query expressiveness, operational overhead and integration ease. Empirical data drawn from industry case studies such as Netflix, Uber, and Shopify, and survey data illustrate real-life adoption trends and challenges. These findings demonstrate that polyglot persistence increases adaptability , performance , domain alignment but also governance or operational complexity. To cope with such trade-offs, architectural patterns such as saga workflows, event sourcing, and outbox integration are discussed.

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

↑