incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

Remove the dependency of Saga annotations on @LocalTCC

Open funky-eyes opened this issue 6 months ago • 2 comments

Why you need it?

  1. 如果saga注解化的分支不是远程分支时,必须要带上@LocalTCC注解才会被代理,才能注册分支事务.而该注解在使用saga注解化场景下使用会非常困惑,因为它是saga,而不是tcc模式.
  2. 你可以实现一个新的注解来替代@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

funky-eyes avatar Jun 14 '25 17:06 funky-eyes

Hi @funky-eyes , I’d like to give this issue a try. It might take me some time to work.

WangzJi avatar Jun 15 '25 03:06 WangzJi

Hi @funky-eyes , I’d like to give this issue a try. It might take me some time to work.

Ok

funky-eyes avatar Jun 15 '25 04:06 funky-eyes