CQRS sagas - did I understand them right?

后端 未结 3 1945
鱼传尺愫
鱼传尺愫 2020-12-14 03:14

I\'m trying to understand sagas, and meanwhile I have a specific way of thinking of them - but I am not sure whether I got the idea right. Hence I\'d like t

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 03:35

    Your definition of Sagas sounds right for me and I also would define them so.

    The only change in your description I would made is that a saga is only a eventhandler (not a command) for event(s) and based on the receiving event and its internal state constructs a command and sents it to the CommandBus for execution.

    Normally has a Saga only a single event to be started from (StartByEvent) and multiple events to transition (TransitionByEvent) to the next state and mutiple event to be ended by(EndByEvent).

    On MSDN they defined Sagas as ProcessManager.

提交回复
热议问题