VDAOvideo

Offline-First and Local-First Apps Explained with Java | DDIA Explained L46

The Modern SDE · 26 views · 4 weeks ago
Description

Lecture 46 of Designing Data-Intensive Applications, Explained in Java · Part 6: Replication. In this lecture • Every device keeps a local database and acts as a leader; sync is multi-leader replication taken to the extreme • Lag between devices may be hours or even days • Real-time collaboration is multi-leader too: each browser tab is a replica • What a sync engine does: capture edits, send or queue, receive, merge, update the screen • Offline-first versus local-first, and why an open sync protocol matters • Benefits: fast screen (a typed letter shows at once), no separate offline mode, simpler code, live updates • Limits: the data a user may need must fit on the device • Real Java run: taps made offline wait in an outbox and reach the server when signal returns Chapters 0:00 A phone is a leader 1:04 Live collaboration 1:57 Offline-first and local-first 2:22 Watch the queue run 5:06 Why apps choose this 6:06 Where it does not fit 7:02 Recap and check Follows the topics of Designing Data-Intensive Applications, 2nd Edition, by Martin Kleppmann and Chris Riccomini (O'Reilly, 2026) (Sync Engines and Local-First Software, Real-time collaboration, offline-first, and local-first apps, Pros and cons of sync engines). An independent course, not affiliated with the authors or the publisher. Every explanation, example, diagram and line of code in this lecture is original. Previous lecture: L045 Multi-Leader Replication Explained with Java Next lecture: L047 Resolving Write Conflicts: LWW, Siblings, CRDT and OT #DDIA #DesignDataIntensiveApplications #SystemDesign #Databases #DistributedSystems #Java #SoftwareEngineering #EngineerX #OfflineFirst #LocalFirst #SyncEngine #Java