1.事务模式:
AT:https://seata.io/zh-cn/docs/dev/mode/at-mode.html
TCC:https://seata.io/zh-cn/docs/dev/mode/tcc-mode.html
Saga:https://seata.io/zh-cn/docs/user/saga.html
SA:https://seata.io/zh-cn/docs/dev/mode/xa-mode.html
2.事务分组: https://seata.io/zh-cn/docs/user/txgroup/transaction-group.html
seata配置中遇到的问题总结:
1.需要配置代理数据源
2.事务传播(xid)是否被破坏
例如有 WebMvcConfigurationSupport或者其他导致分支事务中获取不到RootContext.KEY_XID。解决方式就是添加SeataHandlerInterceptor保证事务传播。
本文详细介绍了Seata的四种事务模式:AT、TCC、Saga和SA,并解析了事务分组的概念。在配置Seata时,需要注意代理数据源的设置以及确保事务传播不被破坏,特别提到了在WebMvcConfigurationSupport等情况下如何保持XID的正确传播。通过SeataHandlerInterceptor可以保证分支事务中的事务传播。
541

被折叠的 条评论
为什么被折叠?



