go back
go back
Volume 18, No. 2
Making CRDTs Not So Eventual
Abstract
Conflict-free replicated data types (CRDTs) are highly available and performant data replication solutions for distributed applica-and performant data replication solutions for distributed applications. However, their eventual consistency guarantees are often insufficient for ensuring application correctness, especially in the presence of Byzantine failures. Naively applying traditional consen-presence of Byzantine failures. Naively applying traditional consensus and Byzantine fault tolerance (BFT) protocols to CRDT updates for stronger guarantees, while intuitive, negates the performance benefits of CRDTs. We introduce a novel programming model called reliable CRDTs that expands CRDTs with additional guarantees: users can query strongly or eventually consistent values, enforce a total order among selected operations, and define data-type level invariants while re-selected operations, and define data-type level invariants while remaining operational in the presence of Byzantine failures. Reliable CRDTs enable the use of CRDTs in scenarios where strong consis-CRDTs enable the use of CRDTs in scenarios where strong consistency is needed while maintaining their performance advantages. We present an implementation of reliable CRDTs named Janus . It enhances CRDTs with the aforementioned features by functioning as a middleware that facilitates CRDT communication and asyn-as a middleware that facilitates CRDT communication and asynchronously runs a BFT consensus protocol. Our evaluation demon-chronously runs a BFT consensus protocol. Our evaluation demonstrates that Janus achieves 21× higher throughput than naively applying state-of-the-art BFT protocols such as HotStuff achieves, and it remains responsive even under heavy loads.
PVLDB is part of the VLDB Endowment Inc.
Privacy Policy