分布式事务XA
https://www.cnblogs.com/zengkefu/p/5742617.html
阿里的GTS
https://help.aliyun.com/product/48444.html
http://jm.taobao.org/2017/04/13/20170413/
GTS的实现原理(了解):
https://blog.youkuaiyun.com/qq_36510261/article/details/78981755
https://www.cnblogs.com/zengkefu/p/5742617.html
try{
扣除库存 A
comfirm 更新订单状态 B
}catch(Exception e){
cancel 恢复库存
}
侵入性