Lessons learned from building a sync-engine and reactivity system with SQLite
1–10 of 41 posts
Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#2Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#3Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#4Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#5very cool! have you tried Tanstack DB and ElectricSQL? https://x.com/marcelohbairros/status/1956892684859158892
Really people should just move to Gleam and Lustre or Elm, even if it means I'll have much fewer clients paying good money to untangle state issues...
Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#6Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#7I don't see how this certainty follows from "granularity" (whatever that means in this context). I believe to have such a certainty one would need the synchronization to happen within a single transaction that spans both client and server databases.
Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#8Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#9It feels like everyone is solving the sync problem from a slightly different angle. Has anyone here used a few of these in production?
Using the wa-sqlite library, and our own Mobx-based model layer similar to what Linear does.
I gave a short talk about it a few months ago https://www.youtube.com/watch?v=b0GKWzeyZko
Re: Lessons learned from building a sync-engine and reactivity system with SQLite
#10Everything is a full new row because it is “a message” including read receipts. Some messages like read receipts just don’t render in the chat.
Edits can work the same way by rendering over a previous message, even though the local and remote DB have multiple rows for the original and edited messages.