Skip to the guide

Real-time collaboration: many people editing one thing

AdvancedPattern5 pages

A team edits a meeting's agenda on the shared screen, with one person at the laptop typing what everyone calls out. She types changes in the order she hears them, and when someone says "add it after point 3" just as another point went in above, she puts it after the right point anyway. Everyone reads the same screen, she saves the file every few minutes and jots down what changed since, and if she has to leave, whoever takes the laptop opens the last saved file and types in the notes.

The people calling out are editors' devices, and the person at the laptop is the one server that owns the document. Typing changes in the order she hears them, adjusted for what went in first, is operational transformation (OT). The shared screen is every editor's copy kept in step, the saved file is a snapshot and the notes are the operation log. Interviewers ask this for Google Docs, Figma and any shared board, and they listen for who decides the order and what happens when that server dies. The move: route every editor of a document to one owner, which orders and transforms each change, appends it to a log before acknowledging it, and broadcasts it to the others.