DSON: JSON CRDT Using Delta-Mutations For Document Stores
Abstract
We propose DSON, a space efficient ๐ฟ-based CRDT approach for distributed JSON document stores, enabling high availability at a global scale, while providing strong eventual consistency guaran- tees. We define the semantics of our CRDT based approach formally, and prove its correctness and convergence. Previous approaches optimize for collaborative document editing and store metadata proportional to the number of updates to a document, which is not acceptable for long lived document management. The metadata stored with our approach is bounded by ๐(๐^2๐ท +๐ log๐), where ๐ is the number of replicas, ๐ท is the number of document elements, and ๐ โค๐ is the number of concurrent document updates. We also implement our approach[37] and demonstrate its space efficiency empirically. Experimental analysis shows that the metadata stored is typically significantly less than the worst case. This provides the basis for robust highly available distributed document stores with well defined semantics and safety guarantees, relieving application developers from the burden of conflict resolution.