File tree Expand file tree Collapse file tree
springboot-seata-at-sample Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ")
You can’t perform that action at this time.
0 commit comments