Orchestration saga vs Choreography Saga

确认一下理解 - 这个Orchestration saga和Choreography Saga其中的区别是不是Orchestration不是event based,他是主动的发了一条command给message broker再到customer service,比如Reserve credit。而Choreography saga是写了一个order created的event到message borker里。也就是说一个是event driven一个是类似于API call相关服务的?


不是这个区别,在这个例子里面,两者都是发送到 message broker ,不是直接的 API Call。
区别在于 Orchestration-based Saga Order Service 复杂很多,因为它需要维护这个 Saga 的正确性。

1 个赞