当前位置:网站首页>Analysis of distributed transaction TCC
Analysis of distributed transaction TCC
2022-06-28 04:48:00 【May Hacker】
Preface
I have learned about distributed transactions before , Yes 2PC、3PC agreement .
TCC It is also a way to implement distributed transactions / agreement , Alibaba open source seata Distributed transaction middleware supports TCC Pattern .
TCC Introduce
TCC refer to Try - Confirm - Cancel.
- Try It's reserved , That is, reservation and locking of resources , Attention is reserved .
- Confirm It refers to confirming the operation , This step is actually the actual implementation .
- Cancel It refers to the undo operation , It can be understood as canceling the action of the reservation stage .
In fact, from the point of view of thought and 2PC almost , It's all trial and exploratory execution , If it's all right, then actually implement it , If not, roll back .
Be careful
It is worth noting that ,TCC The three board axe method in requires the business party to implement its own logic , It's hard .
Realization TCC When it's logical , We need to pay attention to Idempotent support , Because in Confirm and Cancel Retry may occur when .
边栏推荐
- AspNetCoreRateLimit 速率限制 接口访问限制 限流控制
- Multithreading and high concurrency II: detailed introduction to volatile and CAS
- Multi thread implementation rewrites run (), how to inject and use mapper file to operate database
- June 27, 2022: give a 01 string with a length of N. now please find two intervals so that the number of 1 and the number of 0 in the two intervals are equal. The two intervals can intersect, but not c
- [CSP-J2020] 优秀的拆分
- 云厂商为什么都在冲这个KPI?
- flinkcdc采集oracle,oracle数据库是CDB的
- 灵活的IP网络测试工具——— X-Launch
- Meta universe standard forum established
- Mask's miserable and inspirational childhood, who is introverted by campus violence
猜你喜欢

native关键字的作用

【Matlab BP回归预测】GA优化BP回归预测(含优化前的对比)【含源码 1901期】

mysql导入文本文件时的pager

How do I get the STW (pause) time of a GC (garbage collector)?

抖音實戰~關注博主

Oracledata installation problems

27 years, Microsoft IE is over!

Google Earth engine (GEE) - global flood database V1 (2000-2018)

Taco: a data enhancement technique for character recognition

Multi project design and development · introduction to class library project
随机推荐
Digital promising, easy to reach, Huawei accelerates the layout of the commercial market with "five pole" star products
Win10 how to delete the large file hiberfil sys
Lamaba expression learning and common functional interfaces
OracleData安装问题
S32ds jump to defaultisr
Google Earth engine (GEE) - global flood database V1 (2000-2018)
UI automation test framework construction - write an app automation
mysql导入文本文件时的pager
Project practice! Teach you JMeter performance test hand in hand
[noip2002 popularization group] cross the river pawn
华为9年经验的软件测试总监工作感悟—写给还在迷茫的朋友
Has any boss ever seen repeated binlog messages when MySQL CDC uses datastream
10: 00 interview, came out at 10:02, the question is really too
Sword finger offer 53 - I. find the number I in the sorted array (improved bisection)
2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠,即两个区间的左右端点不可以完全一样。
Pager when importing text files from MySQL
在线直播源码,JS动态效果之,侧边栏滚动固定效果
With the transformation of automatic empowerment, Feihe dairy accelerates its move towards digitalization!
Necessary skills for test and development: actual combat of security test vulnerability shooting range
Play with double pointer