Giter VIP home page Giter VIP logo

Comments (4)

skyesx avatar skyesx commented on June 11, 2024

事务的保障跟 RestRibbonEasyTransRpcProviderImpl 这个没有很大关系。

保障事务的是 补偿、最终一致、TCC、幂等 这些手段。
如果一定要找联系的话,就是在RestRibbonEasyTransRpcProviderImpl的代码使得在调用业务代码前,加入了 上述的一些手段,从而保障最终一致性

from easytransaction.

ji123vj avatar ji123vj commented on June 11, 2024

那我可以理解为,经过了这个代码RestRibbonEasyTransRpcProviderImpl,到达业务代码以后自身带事务吗?如果,业务层操作了一系列的表以后,抛了异常,数据会回滚!我实际测试是回滚的,但是没有看到开启事务的代码(即没有看到cglib的代理层),请问这一块是怎么实现的。

from easytransaction.

skyesx avatar skyesx commented on June 11, 2024

恩,自带事务了,没有用反射形式嵌入事务,用代码嵌入的,代码在这里:

https://github.com/QNJR-GROUP/EasyTransaction/blob/master/easytrans-core/src/main/java/com/yiqiniu/easytrans/idempotent/DefaultIdempotentHandlerFilter.java

不过也可以不开启,不开启就相当于关闭了 被调用端的幂等,要由自己处理这个幂等(幂等表也可以删掉)。

from easytransaction.

ji123vj avatar ji123vj commented on June 11, 2024

好的,谢谢!!

from easytransaction.

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.