Everything - But the Kitchen - Syncs
summary
An open-source library called Core Data Ensembles syncs Core Data SQLite stores by exporting save operations as transaction deltas, replaying them on peers, and using vector clocks to resolve concurrency deterministically. It exposes a backend-agnostic file API so it works with iCloud/Dropbox/local file system, requires only ~20 lines to attach to an existing stack, totals ~6,000 lines of framework code plus ~3,500 lines of unit tests, and the first full sync is working and available on GitHub.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:40Drews background
- 2:20Drews interest in sync
- 5:25Sync in general
- 8:20Solutions
- 15:32PeertoPeer Networks
- 16:15Database Sync
- 28:50Design constraints
- 31:32Implementation
- 33:07Merging
- 37:12Source Code
- 39:55Current Status
related talks
22mRapid Development on Offline First Data Sync
34mBuilding a Sync Engine in Clojure
37mLet’s Sync Up! Tips and Tricks to Add Offline Sync to Your App with Confidence
34mOffline-First Mobile App Design
32mNative-Grade Web Apps with Local-First Data
18mRethinking Apps with Local-First Architecture
24mgives databases to everyone
31mBrowser database for offline application use
