ios - 使用 Firebase 与企业数据库进行离线数据同步

标签 ios synchronization firebase

我有一个关于与 Firebase 充当中介的企业数据库的离线数据同步的查询。

我的问题是

  1. Firebase 是否支持连接企业数据库(例如 Oracle)并充当移动设备和企业数据库之间的中介?
  2. 如果是,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/

相关文章:

objective-c - iOS performSelectorOnMainThread 有多个参数

iphone - ReloadTable 使应用程序崩溃

java - java多线程Web服务中同步和维护操作顺序

java - 在Java中创建同步静态单例Map

git - 如何同步从 Machine1 推送到 Git 存储库的 Machine2 上相同的现有项目?

swift - Firebase 分析 : Event Parameters not Logged on FB Console

ios - 如何在 SceneKit 中使用 OBJ 文件或 CTM 文件而不是 DAE 文件?

ios - 代码 8 : Build app with iOS 9 Base SDK

Android Firebase - 将图像从可绘制对象上传到存储

android - 无法在 FCM 控制台中看到云选项卡