Skip to content

Commit f78c227

Browse files
committed
fix readme by seata at
1 parent 3323286 commit f78c227

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

springboot-seata-at-sample/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ Seata-AT通过全局锁的方式,实现读写隔离
7777
------------
7878

7979
### Seata-AT实战
80+
8081
##### 1.实现一个交易业务(Bussiness),需要库存服务(Stroage)、订单服务(Order)和用户服务(Account)
8182
<img src="https://raw.githubusercontent.com/ipipman/JavaSpringBootSamples/master/ReadmeMaterial/681607659883_.pic.jpg" width = "600" height = "320" alt="图片名称" align=center />
83+
8284
###### 在SprintBoot下运行,本文并没有使用RPC的方式,而是在HTTP请求头中透传XID的方式实现的,代码如下:
8385
> - seata-at-account-service
8486
> - seata-at-bussiness-service
@@ -186,6 +188,14 @@ store {
186188
187189

188190
##### 4.启动四个SpringBoot项目,注意数据库和Seata服务的IP与端口配置,进行测试
189-
> 测试成功场景:curl -X POST http://127.0.0.1:8084/api/business/purchase/commit
190-
> 测试事务回滚场景:http://127.0.0.1:8084/api/business/purchase/rollback
191191

192+
> 测试事务提交成功场景:curl -X POST http://127.0.0.1:8084/api/business/purchase/commit
193+
> 测试事务回滚成功场景:http://127.0.0.1:8084/api/business/purchase/rollback
194+
195+
196+
------------
197+
198+
199+
### 柔性事务TCC、AT、SAGA模式总结
200+
201+
![https://raw.githubusercontent.com/ipipman/JavaKnowledge/master/XT/Base%E6%9F%94%E6%80%A7%E4%BA%8B%E5%8A%A1.png](https://raw.githubusercontent.com/ipipman/JavaKnowledge/master/XT/Base%E6%9F%94%E6%80%A7%E4%BA%8B%E5%8A%A1.png "https://raw.githubusercontent.com/ipipman/JavaKnowledge/master/XT/Base%E6%9F%94%E6%80%A7%E4%BA%8B%E5%8A%A1.png")

0 commit comments

Comments
 (0)