Reputation: 4060
I have a query regarding offline datasync with Enterprise database where Firebase acts as mediator.
My questions are
For your reference, I found that Kony provide same type Offline Sync feature . I am looking for same feature with Firebase.
Any idea or suggestion would be great.
Thanks
Upvotes: 0
Views: 396
Reputation: 16673
There is no full solution implemented in Firebase. But Firebase does provide client offline support. From the documentation
Every client sharing a Firebase database maintains its own internal version of any active data. When data is updated or saved, it is written to this local version of the database. The Firebase client then synchronizes that data with the Firebase servers and with other clients on a 'best-effort' basis.
As a result, all writes to the database will trigger local events immediately, before any data has even been written to the server. This means the app will remain responsive regardless of network latency or Internet connectivity.
Once connectivity is reestablished, apps receive the appropriate set of events so that the client "catches up" with the current server state, without having to write any custom code.
Adding another tier (maybe a node.js server) could then monitor Firebase for any updates synced from the clients and move them to the main database
Upvotes: 2