PRDTs: Composable Design and Verification of Consensus Protocols using Replicated Data Types
Julian Haas, Ragnar Mogk, Annette Bieniusa, Mira Mezini
Technische Universität Darmstadt · Rheinland-Pfälzische Technische Universität Kaiserslautern-Landau
Key points
From the paper's conclusion- Protocol Replicated Data Types (PRDTs), a novel programming model for implementing consensus protocols using replicated data types (RDTs), was proposed.
- PRDTs employ RDTs to monotonically accumulate knowledge until agreement is reached, allowing for implementations focusing on high-level protocol logic that abstracts away network details.
- By applying existing algebraic composition techniques for RDTs in the PRDT context, we enable composable protocol building-blocks for implementing complex protocols.
Abstract
Consensus protocols are fundamental in distributed systems as they enable services with strong consistency properties. However, designing protocols optimized for specific use-cases under certain system assumptions is typically an error-prone process requiring expert knowledge. Furthermore, while most recent optimized protocols are variations of well-known algorithms like Paxos or Raft, they often necessitate complete re-implementations, potentially introducing new bugs and complicating the application of existing verification results. This approach impedes application-specific consistency protocols that can easily be amended or swapped out, depending on the given application and deployment scenario. We propose Protocol Replicated Data Types (PRDTs), a novel programming model for implementing consensus protocols using replicated data types (RDTs). Inspired by the knowledge-based view of consensus, PRDTs employ RDTs to monotonically accumulate knowledge until agreement is reached. This approach allows for implementations focusing on high-level protocol logic that abstracts away network details and facilitates automated verification. Moreover, by applying existing algebraic composition techniques for RDTs in the PRDT context, we enable composable protocol building-blocks for implementing complex protocols. We present a formal model of our approach and implement a proof procedure that allows automated reasoning about the consensus safety of concrete PRDT implementations. Additionally, we demonstrate the applicability of our model in verified PRDT-based implementations of existing consensus protocols, and report empirical performance evaluation results. Our findings indicate that the PRDT approach offers enhanced flexibility and composability in protocol design, facilitates reasoning about correctness, and is suited for real-world adoption without intrinsic performance drawbacks.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Protocol Replicated Data Types (PRDTs), a novel programming model for implementing consensus protocols using replicated data types (RDTs), was proposed.
- PRDTs employ RDTs to monotonically accumulate knowledge until agreement is reached, allowing for implementations focusing on high-level protocol logic that abstracts away network details.
- By applying existing algebraic composition techniques for RDTs in the PRDT context, we enable composable protocol building-blocks for implementing complex protocols.
Readers' thoughts
No reader thoughts yet.
Related papers
- Composing CRDTs Convergent by ConstructionProceedings of the ACM on Programming Languages · 2026
- The End of Consensus Research?arXiv · 2026
- GUARDTs: Decentralized Access Control for Replicated Data TypesarXiv · 2026
- TLAPS-Bench: Formally Proving Correctness of Real-World System Specifications with TLA+ Proof SystemarXiv · 2026
- Dugong: Composing Uncertified DAG ConsensusarXiv · 2026
- Stephen: Verifying Sequencer-Aided Coordination Systems with Cross-View ProphecyarXiv · 2026