Crdt and Sqlite: Local-First Value Synchronization
Posted3 months agoActive3 months ago
marcobambini.substack.comTechstory
calmmixed
Debate
60/100
CrdtSqliteLocal-First SoftwareData Synchronization
Key topics
Crdt
Sqlite
Local-First Software
Data Synchronization
The article discusses using CRDT (Conflict-free Replicated Data Types) with SQLite for local-first value synchronization, sparking a discussion on the limitations and potential issues with this approach.
Snapshot generated from the HN discussion
Discussion Activity
Active discussionFirst comment
4d
Peak period
12
96-108h
Avg / period
8
Comment distribution16 data points
Loading chart...
Based on 16 loaded comments
Key moments
- 01Story posted
Oct 9, 2025 at 10:01 AM EDT
3 months ago
Step 01 - 02First comment
Oct 13, 2025 at 2:43 PM EDT
4d after posting
Step 02 - 03Peak activity
12 comments in 96-108h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 14, 2025 at 2:17 AM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45527840Type: storyLast synced: 11/20/2025, 12:53:43 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
In practice "1000 people edit same thing at same time" is not a problem that needs to be solved via software, the users are just doing silly things and getting silly results.
It doesn't need to make sense, or be the most recent change, only that given the same inputs, everyone independently agrees on the same output.
In practice during CouchDB's heyday, with lots of heavy users, the conflict management API almost never mattered, as most people can make do with deterministic merges.
It seems wrong to rely on NTP for a distributed system like this, but I couldn't really figure out a better way at the time.
Though in all honesty, NTP is mostly fine for datacenter deployments where clocks are usually within nanoseconds of each other, so you can use a timestamp with microsecond precision and probably be fine.
> Here’s a polished section you can insert into your article (it fits naturally after the Sync Phase section):