← InfraDraft

Productivity & Collaboration

Design Google Docs (Operational Transformation / CRDTs)

A real-time collaborative editor merging concurrent edits from many clients without conflicts using OT or CRDT-based synchronization.

Open and Simulate this Architecture in InfraDraft

Core Architectural Components

Real-Time Sync Engine

OT or CRDT resolver that merges concurrent edits deterministically.

WebSocket Collaboration Gateway

Streams operations between all clients editing the same document.

Document Store

Versioned snapshots plus the operation log needed to reconstruct any point in history.

Presence/Cursor Broadcasting Service

Shows collaborators' live cursor positions and selections.

Conflict Resolution Service

Applies the OT/CRDT merge algorithm when edits overlap.

Offline Edit Queue & Reconciliation

Buffers local edits made offline and merges them back in on reconnect.

Access Control & Sharing Permission Service

Governs who can view or edit a given document.

Revision History Service

Lets users browse and restore past document versions.