How Google Docs-style real-time editing uses Operational Transformation to resolve conflicts

A system design write-up explains how a real-time collaborative editor lets many users edit one document simultaneously without losing or corrupting changes. It estimates the scale involved, roughly 1 million concurrent users generating about 5 million operations per second, and notes that durable storage only sees a small fraction of that traffic. The architecture routes each document to a fixed shard, where a global sequencer imposes a single order on operations. An Operational Transformation engine then rewrites each incoming edit against the changes it missed, and a broadcast manager pushes the results to all connected clients. The author argues that separating in-memory sequencing from persistence is what keeps the system workable at this load.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in