Practice this topic in a realistic system design interview
How can two people edit the same document at the same time without accidentally overwriting each other's changes?
One technique that makes this possible is Operational Transformation, or OT. Each user's edit is applied on their screen right away. When another user's edit arrives later, OT adjusts it so it still does what that user intended, given the changes that have already happened locally.
In this chapter, we'll see how OT works, how it handles conflicting edits, and why it has been used in collaborative editors like Google Docs.