How Real-Time Collaboration Works: A Deep Dive into CRDTs | Ep. 31

Опубликовано: 30 Июль 2026
на канале: Last Mile Developer
250
12

Udemy course: https://staffengineer.rougeneuron.in

This deep dive explores Conflict-Free Replicated Data Types (CRDTs), the foundational technology behind real-time collaborative applications like Figma, Notion, and Google Docs. We unpack the failures of older concurrency methods like the chaotic "Last Write Wins" (LWW) , which caused silent data loss , and the frustrating slowness of system "locking". The video explains the mathematical principles of commutativity, associativity, and idempotency that guarantee CRDTs can merge edits without conflict. Discover how this technology enables offline work and powers the future of decentralized applications.

00:00 - The Magic of Real-Time Collaboration
01:14 - The Old Ways: Concurrency Problems
01:38 - The Chaos of "Last Write Wins" (LWW)
03:33 - The Slowness of System Locking
04:56 - The CRDT Philosophy: Designing Conflict Out
06:45 - The Three Mathematical Pillars of CRDTs
08:28 - How CRDTs Sync: State-Based vs. Operation-Based
10:20 - Concrete Example: The Grow-Only Counter
12:28 - Real-World Hybrids: How Figma & Notion Do It
13:12 - Case Study: Figma's Fractional Indexing
14:52 - Case Study: Notion's Block-Level Granularity
16:27 - The Decentralized Future: CRDTs and DApps
17:48 - The Big Engineering Headache: The Tombstone Problem
19:20 - Solving the Tombstone Problem
20:28 - Conclusion: A New Architecture for Software