Conflicts and CRDTs
Two people edit the same document on a plane, with no signal. When they land, both versions sync. Whose changes win? If the answer is 'whoever landed last', someone's work just vanished.
In this lesson you'll learn to
- Explain where write conflicts come from, in multi-leader, leaderless and offline-first systems.
- Compare conflict strategies, from last-write-wins to keeping siblings and custom merges.
- Describe how CRDTs such as counters and sets merge automatically, and why the merge must be commutative, associative and idempotent.
- Decide when to avoid conflicts, when to merge them, and when a CRDT is worth it.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.