Code Monkey home page Code Monkey logo

Comments (2)

liuyangming avatar liuyangming commented on August 16, 2024

你所举的例子中,c的cancel会不会调用,要取决于:1)c的try操作是否执行;2)c的try操作所参与的事务是否提交。若二者都是,则执行c的cancel逻辑;若任一为否,则不执行c的cancel逻辑。

ByteTCC只保障confirm/cancel的幂等性。try阶段service的执行还处于业务系统的控制之中,ByteTCC无法得知一个service被多次调用是由于业务需要还是因重试导致,因此ByteTCC不提供try阶段service的幂等性保障。

ByteTCC通过接管spring的事务管理功能,可以精确的获取到每个事务的commit/rollback情况;通过拦截TCC型service的执行,可以将TCC型service与其参与的事务关联起来,从而获知具体某个TCC型service的执行是否有效(service执行并被提交);结合ByteTCC的事务日志机制,因此,可以避免一个service(confirm/cancel)被重复执行多次。

from bytetcc.

xiaoxiaDu avatar xiaoxiaDu commented on August 16, 2024

赞, 非常感谢你的回答.

from bytetcc.

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.