我有一个关于与 Firebase 充当中介的企业数据库的离线数据同步的查询。
我的问题是
- Firebase 是否支持连接企业数据库(例如 Oracle)并充当移动设备和企业数据库之间的中介?
- 如果是,Firebase 是否支持移动设备与企业数据库之间的离线同步。
作为引用,我发现Kony提供了相同的类型Offline Sync特征 。我正在寻找与 Firebase 相同的功能。
任何想法或建议都会很棒。
谢谢
最佳答案
Firebase 中没有实现完整的解决方案。但 Firebase 确实提供客户端离线支持。来自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.
添加另一层(可能是 node.js 服务器)然后可以监控 Firebase 是否有从客户端同步的任何更新并将它们移动到主数据库
关于ios - 使用 Firebase 与企业数据库进行离线数据同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36084223/