pouchdb 复制与 icloud 同步兼容吗?

is pouchdb replication compatible with icloud sync?

Safari 中的 iCloud 同步会干扰 PouchDB 复制吗? 搜索 Google 没有发现任何已知问题。 在通过 iCloud 同步的多个设备上使用 Safari 时,PouchDB 的复制会发生什么。设备可以随时独立地脱机或重新联机。 iCloud 同步是否存在破坏 PouchDB 复制过程的风险?

复制不会损坏,但它们可以创建“conflicts”。

icloud 处理 safari 的方式并不重要。唯一重要的是:

Conflicts are an unavoidable reality when dealing with distributed systems.

来自 CouchDB guide(适用于 PouchDB):

CouchDB does not attempt to merge the conflicting revision. Your application dictates how the merging should be done. The choice of picking the winning revision is arbitrary.

iCould 不同步 运行 进程。 iCloud 同步设备后,将只是 "normal" 复制失败的情况。如果您的应用程序自动将复制设置为实时模式,它将从数据库的当前状态重新启动。如果没有,您将不得不 pull-to-refresh/press-a-button/whatever 您的应用程序使用的机制来启动复制过程。