2

分布式系统数据一致性问题

 3 years ago
source link: https://www.v2ex.com/t/802402
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

分布式系统数据一致性问题

  SirCarol · 2 小时 41 分钟前 · 240 次点击

针对分布式系统下的数据一致性问题,想与大家交流一下在实际业务中已经落地的实现方案。

    • 目前项目中产生的数据一方面存储在 MySQL 中,另一方面通过增量 job 存储在公司内部自研的私有云平台中。
    • 现在需要对比 MySQL 中的数据与私有云平台中的数据是否一致。
    • 仅满足「最终一致性」即可,不要求「强一致性」。
    • 目前实现的方案是:每次定时拉取 MySQL 中定量的数据与云平台中的数据进行逐一对比,若不一致,则修改云平台中的数据。
    • 但在对比的过程中,对于已经拉取到的数据,有可能会发生变更,进而影响云平台中数据的准确性。

所以,大家在具体的项目中,有没有比较好的方案,可以解决以上问题,谢谢!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK