Coder Social home page Coder Social logo

多实例情况下,一定要保证服务实例是完全无状态的,不然有负载均衡的情况下,会导致某个示例的try成功后,调用到另一个实例的confirm/cancel。 about tcc-transaction HOT 3 CLOSED

changmingxie avatar changmingxie commented on July 20, 2024
多实例情况下,一定要保证服务实例是完全无状态的,不然有负载均衡的情况下,会导致某个示例的try成功后,调用到另一个实例的confirm/cancel。

from tcc-transaction.

Comments (3)

wenweihu86 avatar wenweihu86 commented on July 20, 2024

多实例应该是共享同一个数据库的吧,所以状态是一致的,不会有问题。

from tcc-transaction.

abel-von avatar abel-von commented on July 20, 2024

所以我说一定要服务实例本身要无状态。不是所有的服务实例都要共享数据库吧?即使共享数据库,只要服务实例保存了任何缓存之类的东西,都会有问题吧

from tcc-transaction.

wenweihu86 avatar wenweihu86 commented on July 20, 2024

provider多实例间必须要共享数据库,不然会出现不一致。

from tcc-transaction.

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.