Seata 中的 XA 模式实际上是基于 MySQL 的 XA 两阶段提交发展出来的,所以学习 XA 模式,需要小伙伴们先理解 MySQL 中的 XA 是怎么一回事,把 MySQL 中的 XA 搞清楚了,再来学习 Seata 中的 XA 模式就容易的多了。
我们看一下wiki上的解释:A distributed transaction is a database transaction in which two or more network hosts are involved.再根据本地事务的结果向 Broker 发送 Commit 或者 RollBack 命令。