知识卡片

问题卡 · 4496

文件冲突保留双方副本

理解等级:中级

两人基于同一旧文件提交修改时,可以先接受先处理的版本,让后提交者看到冲突并保留本地及服务端副本,之后选择合并或覆盖。检测冲突与自动协同编辑是不同能力,原书方案不包含完整实时协作。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 云盘 · 查看原书依据

      Sync conflicts For a large storage system like Google Drive, sync conflicts happen from time to time. When two users modify the same file or folder at the same time, a conflict happens. How can we resolve the conflict? Here is our strategy: the first version that gets processed wins, and the version that gets processed later receives a conflict. Figure 15-8 shows an example

    参考来源

    - 位置:《System Design Interview – An insiders guide, Second Edition》第15章《云盘》(来源项目 book-sources;源文件:extracted/System Design Interview – An insiders guide, Second Edition/_epub-src/text/part0035_split_002.html) - 结论依据:原文在该位置给出所述对象、机制或比较,支持本卡的解释;原书未展开的实现不作为已证明结论,算式与一致性边界在正文明确限定。 - 原始内容:Sync conflicts For a large storage system like Google Drive, sync conflicts happen from time to time. When two users modify the same file or folder at the same time, a conflict happens. How can we resolve the conflict? Here is our strategy: the first version that gets processed wins, and the version that gets processed later receives a conflict. Figure 15-8 shows an example