DEFINITION

CRDT

Conflict-free Replicated Data Type

Definition

A data structure that enables concurrent edits across multiple replicas without requiring coordination or conflict resolution. CRDTs automatically merge changes from different sources in a deterministic way, ensuring all replicas converge to the same state. Yjs is a popular CRDT library used in real-time collaboration systems.

Examples in the Wild

  • Example 1:Yjs merging concurrent edits in real-time without conflicts
  • Example 2:Multiple agents editing shared documents simultaneously
  • Example 3:Syncing structured data (not just text) across distributed systems
  • Example 4:Presence and awareness tracking in collaborative editors