分布式事务解决方案
3、tcc-transaction

1、最好的方式就是避免分布式事务
2、无法避免的分布式事务
关于分布式事务,工程领域主要讨论的是强一致性和最终一致性的解决方案。典型方案包括:
两阶段提交(2PC, Two-phase Commit)方案
eBay 事件队列方案
TCC 补偿模式
缓存数据最终一致性
事务链和保证原子性、数据一致性? TCC策略

dubbo
https://github.com/changmingxie/tcc-transaction/wiki

JTA


网友评论