Anti-Entropy and Replica Reconciliation

Detect missing or different replica state through summary comparison and merge according to the chosen version semantics.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Compare progressively smaller regions
  2. Detecting a difference does not select its resolution

Compare progressively smaller regions

Replicas can periodically compare summaries of equivalent key ranges. If a range digest agrees under the hash assumptions, avoid visiting every key there. If it differs, compare smaller ranges until identifying records needing exchange. A Merkle tree represents this hierarchy, but matching roots first requires an agreed partition, ordering and interpretation of records.

Detecting a difference does not select its resolution

An older value, new value and deletion marker can all have distinct meaning. Use the application’s version semantics to decide which to retain or merge. Discarding deletion information too early can let an older copy reappear after repair. Join-semilattice merging provides one convergent rule. Merkle proofs explain hierarchical hashes, and epidemic protocols address repair dissemination.[1][2]

References

  1. Giuseppe DeCandia et al., Dynamo: Amazon’s Highly Available Key-Value Store ↩
  2. Nuno Preguiça, Carlos Baquero and Marc Shapiro, Conflict-Free Replicated Data Types ↩