Google Docs HLD: Operational Transformation for Real-Time Co-Editing
How Google Docs lets many people edit one document at once: why naive concurrent edits diverge, how Operational Transformation rewrites operations to converge, and the central-server OT architecture.
Two people type into the same Google Doc at the same moment. Somehow neither one's cursor jumps, neither one's words get eaten, and a second later both screens show the identical document. That "somehow" is Operational Transformation (OT) — the algorithm that takes two edits made against the same starting text and rewrites them so they can be applied in any order and still land everyone on the same result. It's the quiet machinery behind Google Docs, and it's one of the most satisfying algorithms to derive from scratch in an interview. This is the inside of collaborative editing. The signature…
What’s inside
Read this one free
Sign in and your first premium article is on us — read Google Docs HLD: Operational Transformation for Real-Time Co-Editing free.