Skip to content

Master #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _data/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
- title: TX-LCN
docs:
- txlcn-index
- txlcn-lessson01
- txlcn-lessson02
- txlcn-lesson01
- txlcn-lesson02
2 changes: 1 addition & 1 deletion _docs/txlcn/lessson01.md → _docs/txlcn/lesson01.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 分布式事务从0到1-认识分布式事务
permalink: /docs/txlcn-lessson01/
permalink: /docs/txlcn-lesson01/
---

<iframe src="//player.bilibili.com/player.html?aid=80626430&page=1"
Expand Down
9 changes: 7 additions & 2 deletions _docs/txlcn/lessson02.md → _docs/txlcn/lesson02.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: 分布式事务从0到1-了解TX-LCN原理
permalink: /docs/txlcn-lessson02/
permalink: /docs/txlcn-lesson02/
---

![](/img/WX20191220-102719.png)
<iframe src="//player.bilibili.com/player.html?aid=80676649&cid=138066500&page=1"
scrolling="no" border="0" frameborder="no" width="100%" height="600px" framespacing="0" allowfullscreen="true"> </iframe>
本节课讲解的主要内容是TX-LCN分布式事务的原理介绍。

### TX-LCN的核心控制流程
Expand Down Expand Up @@ -110,8 +111,12 @@ A ->B2.two();

控制在同一次事务下同一个被负载的模块被重复调用时将只会请求到第一次被选中的模块。


### 保障机制与补偿

<iframe src="//player.bilibili.com/player.html?aid=80676836&cid=138067157&page=1" scrolling="no" border="0"
width="100%" height="600px" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

#### 超时机制
当业务模块在接受到事务请求,并完成响应以后会自动加入定时任务,等待TM通知,若TM迟迟不通知则触发TC主动请求的状况,若TC没有请求到数据就记录补偿(回滚事务)。
#### TM清理机制
Expand Down