Skip to content

Commit a58db8a

Browse files
代码风水师代码风水师
authored andcommitted
添加了TCC简介
1 parent 0947b83 commit a58db8a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎resource/markdown/distribution/TPP.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">一、CAP定理</h3>
1+
<h3 style="padding-bottom:6px; padding-left:20px; color:#ffffff; background-color:#E74C3C;">TCC事务补偿机制(柔性事务方案)</h3>
22

3+
**TCC** 是 *Try Confirm-Cancel* 的缩写,其本质上还是2PC(两阶段提交协议)。它不像具有[ACID特性](https://github.com/about-cloud/JavaCore)的数据库事务那样刚性 ,TCC又没有XA事务那样直接依赖于资源管理器(RM),它是基于业务层面的事务操作,所以(占有资源的)粒子度是可控的,所以又称为**柔性事务方案**。TCC分为两阶段:**Try阶段** 和 **Confirm/Cancel阶段**。
4+
5+
![TCC]()
6+
7+
#### 第一阶段:Try阶段:
8+
9+
10+
11+
12+
13+
#### 第二阶段:Confirm/Cancel阶段:

0 commit comments

Comments
 (0)