18

架构设计 | 基于电商交易流程,图解TCC事务分段提交-知了一笑

 3 years ago
source link: https://blog.51cto.com/14439672/2526116
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本文源码:GitHub·点这里||GitEE·点这里一、场景案例简介1、场景描述分布式事务在业务系统中是十分常见的,最经典的场景就是电商架构中的交易业务,如图:客户端通过请求订单服务,执行下单操作,实际上从订单服务上又触发了多个服务链请求,基本步骤如下:客户端请求在订单服务上创建订单;订单服务调用账户服务扣款;订单服务调用库存服务执行库存扣减;订单通过物流服务,转化为物流运单;这套流程在电商系统中

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK