Offline to online sync?
We are building an app that requires offline sync capabilities when clients are offline for extended periods, will client side writes be synced once connection is restored? If this functionality hasn't been implemented yet, could it be? In order to truly compete with firebase its a must have feature...
- Detect network status
- Cache local writes in sql light or other client managed storage solution
- Reconcile the diffs server state and client when reconnecting
- Sync server and client state.
7 Replies
hey there. better offline support is not something we plan on investing in until later this year, but there have abeen few projects to marry convex with another offline storage layer when that abstraction is useful. here's a thread that was updated recently with more on the state of the world, offline-wise: https://discord.com/channels/1019350475847499849/1139602956728156270/1139602956728156270
Thanks Jamie, unfortunately we are stuck with Amplify or Firebase then, once we start we're bought in and most likely won't be changing, we obvs would have prefered to rock with convex but its critical for this app and we need to start within the next month or two. Firebase and appsync data store who would have thought that they would own the offline sync for so long, can't think of anyone else providing a solid alternative. Feels like an easy win at this point.
Thanks for the info and posting back 🙂
@jamwt any updates on offline first (offline online sync). You mentioned that this would be looked at later this year. We are here now and would be great to get an update as we are just about to go in with RXDB, Deno and DenoKV over Convex as we get the offline functionality we are looking for. We would have chosen Convex but you guys have not prioritised the offline sync which is Firebases major feature so you guys are not comparable (even though you enjoy the comparison, Convex is behind in this regard).
Yes. Still planning on focusing on this after we ship components. Q4.
pglite, electric sql, couchdb
there are a lot more afaik
SignalDB - Reactive Local-First JavaScript Database
SignalDB is a reactive, local-first JavaScript database with real-time sync, Optimistic UI and signal-based reactivity.
Triplit | The Fullstack Database
Triplit is a complete solution to data persistence, state management, and realtime synchronization for web applications that want to go fast.
I just searched Firebase's home page and they don't even mention their offline capabilities. Apparently AI is their major feature 😂
Triplit looks good!