Join-Semilattices for Convergent Replication
Derive why repeatable state merges converge and identify the assumptions that make a mathematical join appropriate for replica state.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A merge is the least state covering both inputs
For a grow-only set, use subset inclusion as order and union as join. Each local update adds an element. Merging \(\{a,b\}\) with \(\{b,c\}\) yields \(\{a,b,c\}\). Union is associative, commutative and idempotent. Reordering deliveries or applying an identical state repeatedly therefore does not change the final union once the same information is available.
Model operations that need negative information carefully
Ordinary removal is not monotone under subset inclusion. A set supporting removal can carry additional version information and represent which insertions were removed. Simply deleting an element from one replica’s set and then merging by union can bring it back. Conflict-free replicated types develop specific semantics for those cases. Anti-entropy supplies eventual state exchange under its own assumptions.[1]