当前位置:网站首页>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
边栏推荐
- 【LeetCode】444. 序列重建
- Paper reading: hardnet: a low memory traffic network
- django.db.utils.OperationalError: (2002, “Can‘t connect to local MySQL server through socket ‘/var/r
- OpenCascade笔记:gp包
- MySql的DDL和DML和DQL的基本语法
- baddy:核心函数入口
- 记账APP:小哈记账2——注册页面的制作
- 研究会2022.07.22--对比学习
- C语言中extern,static, register,volatile 关键字的作用;保姆级教学!
- RIoTBoard开发板系列笔记(九)—— buildroot 移植MatchBox
猜你喜欢

Pytorch deep learning practice lesson 10 / assignment (basic CNN)

Part II - C language improvement_ 2. Memory partition

编译与调试(gcc,g++,gdb)

记账APP:小哈记账2——注册页面的制作

论文阅读:HarDNet: A Low Memory Traffic Network

JMeter notes 2 | JMeter principle and test plan elements

Paper reading: hardnet: a low memory traffic network

C language start

PyTorch 深度学习实践 第10讲/作业(Basic CNN)

Redis 分片集群
随机推荐
第二部分—C语言提高篇_3. 指针强化
AMD64(x86_64)架构abi文档:上
Paper reading: hardnet: a low memory traffic network
After grouping, return to the last record group in each group_ Use of concat
The function of extern, static, register, volatile keywords in C language; Nanny level teaching!
fopen、fwrite、fseek、ftell、fread使用demo
【LeetCode-简单】20. 有效的括号 - 栈
In the era of e-commerce, what should enterprises do in the transformation of social e-commerce?
Redis 哨兵机制
【方向盘】IDEA的代码审查能力,来保证代码质量
野指针,空指针,失效指针
PyTorch 深度学习实践 第10讲/作业(Basic CNN)
FPGA实现AXI4总线的读写
Ue4/5 cannot open the file "xxx.generated.h" (cannot open file xxx.generated.h) solution summary
Decompress the anchor and enjoy 4000w+ playback, adding a new wind to the Kwai food track?
Libc.so.6/glibc cross compilation
yocs_ velocity_ Smooth source code compilation
安全工具之hackingtool
avaScript的流程控制语句
libsvm 使用参数的基础知识笔记(1)