当前位置:网站首页>Learning notes - distributed transaction theory
Learning notes - distributed transaction theory
2022-07-24 07:16:00 【weixin0605】
Distributed transactions
Local transactions
- A
- Atomicity
- All transaction operations , Or both , Or it's not done
- C
- Uniformity
- Before and after the transaction , The database consistency constraint is not broken
- I
- Isolation,
- The two transactions do not interfere with each other
- D
- persistence
- After the transaction completes , Data changes are persisted to the database , Will not be rolled back
Distributed transactions
- Distributed transactions
- The transactions completed by different services through network remote cooperation are called distributed transactions
- scene
- Microservices
- A single entity accesses multiple databases
- Multiple services access a database
CAP theory
c
- Uniformity
a
- Usability
- ca Can't coexist
p
- Zone tolerance
- must
Combine
- ap
- Give up consistency
- cp
- Discard availability
- Transfer accounts
- ca
- Discard partition
- ap
base theory
- Strong consistency and ultimate consistency
- Basically
- Soft state
- Final consistency
Solution
2pc
- Two-phase commit
- form
- Transaction manager
- participants
- The process
- Preparation stage
- The transaction manager sends Prepare Message to participants
- Participants execute transactions locally , Not submitted
- Local records Undo/Redo journal ( Before the change / Modified data )
- Submission phase
- If the transaction manager receives error Or timeout , Roll back the transaction
- Preparation stage
XA programme
- DTP Model
- AP
- Applications
- RM
- Explorer
- TM
- Transaction manager
- XA
- TM And RM Direct interface specification Protocol
- AP
seata programme
- Open source distributed transaction framework
- Global transaction
- Branch business
- Concept
- RM
- Control branch transactions
- TM
- Transaction manager
- Embedded applications
- TC
- Transaction coordinator
- Independent operation
- RM
- technological process
- TM towards TC Request to open global transaction , Generating uniqueness XID
- RM towards TC Register branch transactions , Included in the XID The overall affairs of
- completion of enforcement ,TM towards TC Initiate heap XID The global commit or rollback resolution for
- TC Dispatch XID The branch transaction of completes the commit or rollback
TCC
- TCC
- Try
- Preprocessing
- confirm
- Business confirmation
- cancel
- revoke
- Try
- frame
- Hmily
The final consistency of reliable information
- The final consistency of reliable information
- Local transactions and message sending atomicity
- The reliability of the message received by the transaction participant
- The problem of repeated consumption of news
- programme
- Local message table scheme
- RocketMq Transaction message scheme
Best effort notification
- RocketMq Best effort notification scheme
边栏推荐
猜你喜欢

In the era of e-commerce, what should enterprises do in the transformation of social e-commerce?

Upload excel file

avaScript的流程控制语句

Chapter007-FPGA学习之IIC总线EEPROM读取

QoS quality of service three DiffServ Model message marking and PHB

Compilation and debugging (GCC, g++, GDB)

Blockbuster live broadcast | orb-slam3 series code explanation map points (topic 2)

我的创作纪念日

cookie_ session

第二部分—C语言提高篇_3. 指针强化
随机推荐
Customization or GM, what is the future development trend of SaaS in China?
[tips] a simple method to create a version control project
C language to achieve three chess? Gobang? No, it's n-chess
Part II - C language improvement_ 3. Pointer reinforcement
5. Template cache. Drawing a square can only move within the triangle
上传图片base64
【PTA】团体程序设计天梯赛-练习集 L3题目总结(不全)
一首伟大的赞歌
Variables and data types (04) end
第二部分—C语言提高篇_3. 指针强化
Vs2019 configuration running open3d example
[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino
Ue4/5 cannot open the file "xxx.generated.h" (cannot open file xxx.generated.h) solution summary
[word] how to generate the index directory on the left
Libc.so.6/glibc cross compilation
8. Use the quadratic geometry technology to draw a small column on the screen.
聚合型新生态模式-分享购,会员及奖励制度
Compilation and debugging (GCC, g++, GDB)
记账APP:小哈记账1——欢迎页的制作
Mongodb application scenario and model selection (massive data storage model selection)