Description
Why you need it?
- 如果saga注解化的分支不是远程分支时,必须要带上
@LocalTCC
注解才会被代理,才能注册分支事务.而该注解在使用saga注解化场景下使用会非常困惑,因为它是saga,而不是tcc模式. - 你可以实现一个新的注解来替代
@LocalTCC
或者为TCC和SAGA注解化提供一个通用的注解,而不是带有某个特定事务模式标识的注解.
注: 需要向下兼容@LocalTCC
的使用方式
-
When the branch in Saga annotation mode is not a remote branch, it must be annotated with
@LocalTCC
to be proxied and to register the branch transaction. However, using this annotation in the Saga annotation scenario can be very confusing, since it is a Saga, not a TCC mode. -
You could implement a new annotation to replace
@LocalTCC
, or provide a general annotation for both TCC and Saga annotation modes, instead of using an annotation that indicates a specific transaction pattern.
Note: The new solution should be backward compatible with the current usage of @LocalTCC
.
How it could be?
No response
Other related information
No response