• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wsw
V2EX  ›  程序员

RabbitMQ 分布式事务 最终一致性

  •  
  •   wsw · Oct 30, 2020 · 2901 views
    This topic created in 2036 days ago, the information mentioned may be changed or developed.

    有没有大佬说一下,在项目中怎么用 RabbitMQ 应对分布式事务,具体需要怎么做,原理倒是看来一些文章,但还不是很清晰,就是在代码层面大概是怎么做的,求教,谢谢!

    5 replies    2020-10-30 23:04:29 +08:00
    dzdh
        1
    dzdh  
       Oct 30, 2020
    补偿
    重试
    配合分布式锁
    quiet1991
        2
    quiet1991  
       Oct 30, 2020
    DoctorCat
        3
    DoctorCat  
       Oct 30, 2020
    参考 TCC 、Sage
    DoctorCat
        4
    DoctorCat  
       Oct 30, 2020
    都有相关的开源实现
    wsw
        5
    wsw  
    OP
       Oct 30, 2020
    @dzdh #1 好的

    @quiet1991 #2 ok,周末试试
    @DoctorCat #3 ok
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 13:15 · PVG 21:15 · LAX 06:15 · JFK 09:15
    ♥ Do have faith in what you're doing.