Menu

1 / 2

CRDT vs Operational Transformation: How Google Docs and Notion Actually Avoid Edit Chaos

DEV Community: backend·Abdullah al Mubin·6 months ago
#quOOd4GS
#dev#crdt#server#systems#time
Reading 0:00
15s threshold

You’re typing in a document.

Someone else deletes the sentence you’re writing.

Another person edits the same line from another country.

And somehow…

nothing breaks.

No overwrites.

No duplicated text.

No “conflict error” popups.

It feels like magic.

But behind this smooth experience are two competing ideas :

Operational Transformation (OT)

Conflict-free Replicated Data Types (CRDTs)

Both solve the same problem:

How do multiple people edit the same thing at the same time without breaking it?

But they do it in completely different ways .

Let’s break it down like a story.

Index

The Problem They Both Solve

The Two Philosophies

A Real-Life Analogy

How OT Works (Simple Version)

How CRDT Works (Simple Version)

The BIG Difference

Mental Model That Actually Helps

Where You’ve Seen Them Without Knowing

Why OT Feels Hard

Why CRDT Feels Magical

The Key Insight

Final Thought

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.