Guidoo
V2EX  ›  问与答

A 系统通过 REST 接口向 B 系统同步数据,怎么才能保证 A 系统和 B 系统数据实时一致呢?

  •  
  •   Guidoo · May 15, 2020 · 1457 views
    This topic created in 2189 days ago, the information mentioned may be changed or developed.

    只能通过定时任务去轮询调用吗?

    4 replies    2020-05-15 10:50:56 +08:00
    boyhailong
        1
    boyhailong  
       May 15, 2020
    强一致性、弱一致性、最终一致性?你说的实时一致是哪种?再找对应方案
    cxshun
        2
    cxshun  
       May 15, 2020
    实时一致,也就是强一致,那估计还是只能用 2pc 或 3pc 来实现了。另外 RocketMQ 有一个功能是事务性消息,可以考虑一下。
    如果你要实时一致,那肯定不是结束前不能返回罗。也就没必要轮询啦。
    wangyanrui
        3
    wangyanrui  
       May 15, 2020
    要么阻塞,强一致
    要么异步,最终一致
    ChoateYao
        4
    ChoateYao  
       May 15, 2020
    消息通知,最终一致性

    RPC,强一致性
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1301 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 23:52 · PVG 07:52 · LAX 16:52 · JFK 19:52
    ♥ Do have faith in what you're doing.