You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/01/10 08:28:15 UTC

[GitHub] imlidian commented on a change in pull request #77: add saga quick start

imlidian commented on a change in pull request #77:  add saga  quick start
URL: https://github.com/apache/servicecomb-docs/pull/77#discussion_r246668949
 
 

 ##########
 File path: saga-reference/zh_CN/quickstart.md
 ##########
 @@ -17,7 +17,53 @@ TxAbortedEvent 保存对应事务请求和失败的原因
 TxCompensatedEvent 保存对应补偿请求及其回复
 SagaEndedEvent 标志着saga事务请求的结束,不需要保存任何内容
 
+## Demo中的Pack场景
+Pack中包含两个组件,即 alpha 和 omega。
+图中的三个服务,booking、car、hotel均为omega进程,且通过alpha协调。booking调用car与hotel,且omega像一个agent内嵌其中,负责:1)对网络请求进行拦截并向alpha上报事务事件 2)异常情况下根据alpha下发的指令执行相应的补偿操作。而alpha充当协调者的角色,主要负责1)对事务的事件进行持久化存储2)协调子事务的状态,使其得以最终与全局事务的状态保持一致。
 
 Review comment:
   1 关于拦截的描述 我参考了servicecomb-saga开发实战 连接如下
   https://jeremy-xu.oschina.io/2018/07/servicecomb-saga%E5%BC%80%E5%8F%91%E5%AE%9E%E6%88%98/
   2 补充了异常情况的描述
   3 修改了alpha描述

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services