Giter Site home page Giter Site logo

SAGA模式支持sql解析吗 about dtm HOT 2 CLOSED

dtm-labs avatar dtm-labs commented on August 28, 2024
SAGA模式支持sql解析吗

from dtm.

Comments (2)

yedf2 avatar yedf2 commented on August 28, 2024 1

您好,无论是seata还是其他的分布式事务框架,SAGA模式的回退都是手动写的补偿函数

seata里面的AT模式是采用sql解析回退,这种实现有潜在的脏回滚问题。他的原理是解析SQL,把修改前的数据保存起来,当回滚时,将原先的数据再写入。在性能方面,当前的AT模式比XA好一些,但是在修改后回滚前,数据又被其他人修改,就会导致脏回滚,有数据一致性上的问题。

from dtm.

zhangxiaoyus avatar zhangxiaoyus commented on August 28, 2024

我明白了,谢谢

from dtm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.