State-Based ∞P-Set Conflict-Free Replicated Data Type

04/04/2023
by   Erick Lavoie, et al.
0

The 2P-Set Conflict-Free Replicated Data Type (CRDT) supports two phases for each possible element: in the first phase an element can be added to the set and the subsequent additions are ignored; in the second phase an element can be removed after which it will stay removed forever regardless of subsequent additions and removals. We generalize the 2P-Set to support an infinite sequence of alternating additions and removals of the same element. In the presence of concurrent additions and removals on different replicas, all replicas will eventually converge to the longest sequence of alternating additions and removals that follows causal history. The idea of converging on the longest-causal sequence of opposite operations had already been suggested in the context of an undo-redo framework but the design was neither given a name nor fully developed. In this paper, we present the full design directly, using nothing more than the basic formulation of state-based CRDTs. We also show the connection between the set-based definition of 2P-Set and the counter-based definition of the ∞P-Set with simple reasoning. We then give detailed proofs of convergence. The underlying grow-only dictionary of grow-only counters on which the ∞P-Set is built may be used to build other state-based CRDTs. In addition, this paper should be useful as a pedagogical example for designing state-based CRDTs, and might help raise the profile of CRDTs based on longest sequence wins.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/01/2021

Conflict-free Collaborative Set Sharing for Distributed Systems

Collaborative Data Sharing is widely noticed to be essential for distrib...
research
06/18/2020

The Only Undoable CRDTs are Counters

In comparing well-known CRDTs representing sets that can grow and shrink...
research
03/08/2019

Set CRDT com Múltiplas Políticas de Resolução de Conflitos

Um CRDT é um tipo de dados que pode ser replicado e modificado concorren...
research
05/16/2018

Conflict-free Replicated Data Types (CRDTs)

A conflict-free replicated data type (CRDT) is an abstract data type, wi...
research
05/26/2023

GOC-Ledger: State-based Conflict-Free Replicated Ledger from Grow-Only Counters

Conventional blockchains use consensus algorithms that totally order upd...
research
04/08/2020

Composing and Decomposing Op-Based CRDTs with Semidirect Products

Operation-based Conflict-free Replicated Data Types (CRDTs) are eventual...
research
01/19/2018

Towards a Theory of Data-Diff: Optimal Synthesis of Succinct Data Modification Scripts

This paper addresses the Data-Diff problem: given a dataset and a subseq...

Please sign up or login with your details

Forgot password? Click here to reset