01.The Local-First Wave: OT vs. CRDTs
Building real-time collaborative software used to require a centralized, complex server orchestrator. For decades, the industry standard was **Operational Transformation (OT)**—the technology powering Google Docs.
In OT, every local text edit (insertion, deletion) is wrapped into an operation and sent to a central server. The server acts as a single source of truth, recalculating operation index coordinates dynamically to resolve conflicts and sending adjusted commands back to other users.
The OT Bottleneck:
OT requires the central server to be active 100% of the time, maintaining a highly complex sequence history buffer. The moment a client drops offline, peer-to-peer sync or network partitions become incredibly difficult to reconcile, often resulting in silent document divergence.
**CRDTs (Conflict-free Replicated Data Types)** completely rethink this constraint. Instead of relying on a centralized server to decide conflict priority, CRDT structures are mathematically designed to merge operations in *any order* without coordination, ensuring that all clients converge to the exact same state.