Monday 20 November 2017

How would you go about syncing data between Node.js, Electron and React Native?

Hi all.Say that I'm building a note taking app. There's a Node.js Express server exposing a REST API, a web app and both an Electron desktop app and an Android/iOS React Native app.What would you use to store and sync data between all the clients and the server? I've looked into Realm but the pricing is insane (starts at $1750/mo for the server component), Firebase but it doesn't seem to include a way to persist data for the Electron app, MongoDB but it seems that I'd need to write the whole sync logic by myself. How would you address this?Thanks!EDIT: what db engine would you use on the server, on the desktop app and in the mobile apps? As the app should work offline as well, at a high level, how would you implement sync and deal with potential conflicts?

Submitted November 20, 2017 at 08:11AM by lord_jizzus

No comments:

Post a Comment