Offline-First and Local-First Apps Explained with Java | DDIA Explained L46
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
25:36Build an Offline-First SwiftUI App with SwiftData (Works Without Internet!)iOS Insights61 views
4:07How Do Apps Work Offline? The Copy Living in Your PhoneNIMAX DevOps5 views
5:15How to Use Windows 10 AFTER Microsoft Kills ItTechquickie275K views
10:43Local-First Software: Taking Back Control of Our Data | a mini-docCultRepo 109K views
9:18This Free Offline Server Just Got a Massive UpgradeCrosstalk Solutions80.3K views
40:41BOB 2022 Ragnar Mogk - Local-first Distributed ApplicationsBOBKonf103 views
25:26You Should Try Linux For Ham Radio TODAY!Ham Radio Crash Course55.5K views
4:24Offline Mobile App using CaspioWorkMovr - Caspio Developers 37 views
31:31How to Setup a Raspberry Pi LEARNING Desktop (Linux, Hacking, Coding)NetworkChuck1.5M views
3:01Why Your Apps Still Work Offline.DEV-WRAP20 views
17:13Testing my Smart Home with NO internet!Smart Home Solver136K views
31:59How to Make a SwiftUI App Work Offline (No Internet Required!)”iOS Insights41 views
1:21:25Offline-first, multiplayer SQLiteAaron Francis19K views
1:03:13Offline First Architecture - Android Developers Office HoursAndroid Developers7.6K views