3 ms·
This completely glosses over the rather gritty realities of how to sync data between devices. It's not easy and IME most people do an awful job because they thi
by LAC-Tech 4y ago
This completely glosses over the rather gritty realities of how to sync data between devices. It's not easy and IME most people do an awful job because they think it will be.
The only thing approaching an off the shelf solution to this is the CouchDB replication protocol. While technically good, it suffers from a number of issues if you want to use it in practice:
- dearth of cloud providers for CouchDB
- There's pouchDB for the browser but there's nothing for native mobile clients
- While PouchDB is great, it has to run on-top of browsers IndexedDB implementation, all of which suffer from reliability and capacity issues
- JamesSwift 4y agoRealmDB is the best one I've used in the past. I haven't used them since they got bought by Mongo however.
- LAC-Tech 4y agodidn't they just use last write wins?
- JamesSwift 4y agoYou have to handle your own conflict resolution. Ive only used it client-side because our apis have been existing REST systems.
- lytefm 4y ago> dearth of cloud providers for CouchDB Yeah there's IBM Cloudant and that's about it :/ but a single node CouchDB isn't hard to operate. > There's pouchDB for the browser but there's nothing for native mobile clients There are native clients but they aren't maintained anymore by IBM. > While PouchDB is great, it has to run on-top of browsers IndexedDB implementation When building an iOS/Android hybrid app with web technology, SQLite can be used as storage engine for PouchDB.