2 ms·
I have been looking for tools to solve the same problem for a while now. Based on documentation, the most promising approach seems to be to use Couchbase Mobil
by ProblemFactory 12y ago
I have been looking for tools to solve the same problem for a while now.
Based on documentation, the most promising approach seems to be to use Couchbase Mobile/Lite in the app, Couchbase Server on the server, and link them up with their sync gateway: http://developer.couchbase.com/mobile/develop/guides/sync-gateway/index.html http://developer.couchbase.com/mobile/develop/guides/sync-ga...
It seems that this should make it possible to save data both on the client and server side, and leave sync and replication to the databases themselves.
Now, I haven't actually adopted it yet for two reasons:
* My server stack is built on top of Postgresql and Django, so I would need to either rip out Postgres and go all-in with Couchbase, or somehow sync between Postgres and Couchbase on the server, and
* Authentication, authorization and data access filtering has to be implemented as custom Javascript plugins in the sync gateway, so I would have to rewrite most of my server-side app logic. By default the clients have full write access to the server database...
But if you do give this a try, I would really like to hear about your experience.