Hi Zheng Feng

I'm very glad it helps

As you said, SUSPEND COMMITTED COMPENSATED are the three final states

About SagaTimeoutEvent, At some point, we are not sure if alpha is actually 
recording the transaction. For example, the request timeout exception or 
network interrupt exception. I want to log this by sending a SagaTimeoutEvent 
and suspending the transaction

I have added a description for the status and events[1]

I look forward to your suggestions

[1] 
https://github.com/coolbeevip/playground/blob/master/state_machine_demo/saga-akkafsm/README.md
 
<https://github.com/coolbeevip/playground/blob/master/state_machine_demo/saga-akkafsm/README.md>

Lei Zhang

> 在 2019年5月14日,下午3:48,Zheng Feng <zh.f...@gmail.com> 写道:
> 
> Thanks Zhang Lei - it is really great work !
> 
> I think we could describe every event and state with more details, e.g.
> SagaStartedEvent: it is the event to start a global transaction
> SagaEnededEvent: it is the event to close a global transaction
> SagaAbortedEvent: it is the event to abort a global transaction and cause
> the sub-transactions to do the compensate
> SagaTimeoutEvent: it is the event to indicate the global transaction is
> timeout and need the checking manually ? (I am not very if I understand
> this event correctly)
> 
> Also we could add the similar descriptions with the states.
> SUSPEND, COMMITTED, COMPENSATED are the three final states, right ?
> 
> Thanks again !
> Zheng Feng
> 
> 
> Zhang Lei <zhang_...@boco.com.cn> 于2019年5月13日周一 下午11:50写道:
> 
>> I wrote a preliminary design [1] based on wiki [2], , Maybe not perfect or
>> something I don't know.
>> 
>> Any suggestions?
>> 
>> [1]
>> https://github.com/coolbeevip/playground/blob/master/state_machine_demo/saga-akkafsm/README.md
>> <
>> https://github.com/coolbeevip/playground/blob/master/state_machine_demo/saga-akkafsm/README.md
>>> 
>> [2]
>> https://cwiki.apache.org/confluence/display/SERVICECOMB/Using+StateMachine+for+tracing+the+transaction+states
>> <
>> https://cwiki.apache.org/confluence/display/SERVICECOMB/Using+StateMachine+for+tracing+the+transaction+states
>>> 
>> 
>> Lei Zhang

Reply via email to