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

高阶分布式程序设计语言中复制数据的一致性类型

Consistency types for replicated data in a higher-order distributed programming language

Xin Zhao, Philipp Haller

摘要:

分布式系统解决了对快速访问资源和数据容错的日益增长的需求。然而,由于可伸缩性的要求,软件开发人员需要用一致性来换取性能。对于某些数据,如果应用程序正确性不受影响,则一致性保证可能会减弱。相反,从具有弱一致性的数据到具有强一致性要求的数据的数据流是有问题的,因为应用正确性可能被破坏。在本文中,我们提出了基于格的复制数据的一致性类型(CTRD),一个高阶的静态一致性类型的语言与复制数据类型。CTRD的类型系统支持多个客户端之间的共享数据,静态地实现了一致性较弱的数据类型与一致性较强的数据类型之间的互不干扰。该语言可以应用于许多分布式应用程序,并保证弱一致性数据的更新永远不会影响强一致性数据。我们还扩展了基本的CTRD与优化,减少同步生成参考图。

英文摘要:

Distributed systems address the increasing demand for fast access to resources and fault tolerance for data. However, due to scalability requirements, software developers need to trade consistency for performance. For certain data, consistency guarantees may be weakened if application correctness is unaffected. In contrast, data flow from data with weak consistency to data with strong consistency requirements is problematic, since application correctness may be broken. In this paper, we propose lattice-based consistency types for replicated data (CTRD), a higher-order static consistency-typed language with replicated data types. The type system of CTRD supports shared data among multiple clients, and statically enforces noninterference between data types with weaker consistency and data types with stronger consistency. The language can be applied to many distributed applications and guarantees that updates of weakly-consistent data can never affect strongly-consistent data. We also extend the basic CTRD with an optimization that reduces synchronization for generating reference graphs.

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

↑