Sync engine design approach

43
April 15, 2019, at 6:10 PM

I am in a situation where I am unable to figure out how to go about realtime db sync as a part of offline-first architecture for Android/iOS. The situation is:

Let's assume I have built an app to share email IDs. Now, suppose 10 users shares their email with me via the app where I have their emails stored in my local sqlite db on mobile as well as on cloud database linked to my account.

Now, suppose out of 10 users who share their email with me out of which 6 users changes their email what I am trying to achieve is get the email change synced on my local db on device as well as on cloud every time any of the users who share their email with me and same applies to every user irrespective of how many are using the app and sharing their information.

In such situation what design approach or stack should I use. Came across Firebase and Couchbase mobile (Combination of Couchdb lite, Couchbase Sync Gateway and CouchDB)

Looking forward to hear from you for guidance.

Thanks and best,

Rohit

READ ALSO
Upload binary file with retrofit android?

Upload binary file with retrofit android?

I have image file to be uploaded to serverThe API is to be of Content-Type:application/x-www-form-urlencoded

55
How to keep 3rd party library for Android?

How to keep 3rd party library for Android?

I have third party libraries in my projectI added Proguard my project and i make release project but my third party libraries crashes

45
App is getting Restart when data is changed on firebase database [on hold]

App is getting Restart when data is changed on firebase database [on hold]

My app is getting restart when any data is changed in firebase database, even if my app is the onPause mode that time, if changed my database value, app getting restart and show the apphow can i solve it?

33
Extend Gradle Task

Extend Gradle Task

Now in project i am using gradle plugin for hockeyapp

38