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

多语言复制数据系统中跨语言互操作性实证研究

An Empirical Study of Cross-Language Interoperability in Replicated Data Systems

Software Innovations Lab, Virginia Tech, USA(弗吉尼亚理工学院暨州立大学软件创新实验室)

Provakar Mondal, Eli Tilevich

AI总结:

本研究通过实证分析,发现通用数据格式在多语言复制数据系统中能提升软件质量和性能表现。

摘要:

背景:现代分布式系统在多个执行站点复制数据。业务需求和资源限制往往要求在副本站点混合使用不同的语言。为了便于管理复制数据,现代软件工程实践整合了专门的复制数据库库(RDLs),它们提供读写访问权限并确保数据同步。无论实现语言如何,RDL通常使用单一语言或提供绑定到指定语言的接口。因此,在多语言环境中整合现有RDL需要专门的代码,其软件质量和性能特性了解甚少。\n目标:我们旨在填补这一知识差距,以了解RDL在多语言环境中的软件质量和性能特性。\n方法:我们对两种关键策略进行了实证研究,即在多语言复制数据系统背景下整合RDL:外函数接口(FFI)和通用数据格式(CDF);我们测量并比较它们的软件指标和性能,以了解其适用性。\n结果:我们的结果表明,采用CDF进行跨语言交互在软件质量、延迟、内存消耗和吞吐量方面具有优势。我们进一步通过(1)创建基于CDF的RDL以混合编译语言、解释语言和托管语言;(2)增强RDL以插件扩展性,使能够在单一语言中添加功能同时保持在多语言环境中的整合性。\n结论:随着现代分布式系统使用多种语言,我们的发现为设计多语言复制数据系统的RDL提供了新的见解。

英文摘要:

BACKGROUND: Modern distributed systems replicate data across multiple execution sites. Business requirements and resource constraints often necessitate mixing different languages across replica sites. To facilitate the management of replicated data, modern software engineering practices integrate special-purpose replicated data libraries (RDLs) that provide read-write access to the data and ensure its synchronization. Irrespective of the implementation languages, an RDL typically uses a single language or offers bindings to a designated one. Hence, integrating existing RDLs in multilingual environments requires special-purpose code, whose software quality and performance characteristics are poorly understood. AIMS: We aim to bridge this knowledge gap to understand the software quality and performance characteristics of RDL integration in multilingual environments. METHOD: We conduct an empirical study of two key strategies for integrating RDLs in the context of multilingual replicated data systems: foreign-function interface (FFI) and a common data format (CDF); we measure and compare their respective software metrics and performance to understand their suitability for the task at hand. RESULTS: Our results reveal that adopting CDF for cross-language interaction offers software quality, latency, memory consumption, and throughput advantages. We further validate our findings by (1) creating a CDF-based RDL for mixing compiled, interpreted, and managed languages; and (2) enhancing our RDL with plug-in extensibility that enables adding functionality in a single language while maintaining integration within a multilingual environment. CONCLUSIONS: With modern distributed systems utilizing multiple languages, our findings provide novel insights for designing RDLs in multilingual replicated data systems.

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

↑