We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以在 tcc事务发起者方法(try方法)添加一个业务主建,并使用@uniqueidentity 标示,如示例项目tcc-transaction-dubbo-order的PaymentServiceImpl.makePayment方法(如下): public void makePayment(@uniqueidentity String orderNo) ;
tcc框架将使用@uniqueidentity 注解标示的参数作为tcc的主事务xid,如果tcc事务发起者方法同时执行多次,其tcc的主事务xid都是一样的,这样仅有一个请求的tcc事务保存成功,其他的调用则失败。
The text was updated successfully, but these errors were encountered:
感觉try阶段做的事情就是占用资源,是一种检查机制。防止重复调用应该由分支事务来控制,完全交由框架感觉有点粗暴~
Sorry, something went wrong.
幂等性就应该由业务保证,跟框架没关系
No branches or pull requests
可以在 tcc事务发起者方法(try方法)添加一个业务主建,并使用@uniqueidentity 标示,如示例项目tcc-transaction-dubbo-order的PaymentServiceImpl.makePayment方法(如下):
public void makePayment(@uniqueidentity String orderNo) ;
tcc框架将使用@uniqueidentity 注解标示的参数作为tcc的主事务xid,如果tcc事务发起者方法同时执行多次,其tcc的主事务xid都是一样的,这样仅有一个请求的tcc事务保存成功,其他的调用则失败。
The text was updated successfully, but these errors were encountered: