且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CQRS sagas-我是否理解正确?

更新时间:2023-11-29 15:43:40

有多种实现Sagas的方法。从无状态事件处理程序到达的过程,这些事件处理程序从一路发布命令一直到承载所有状态,并且基本上是域本身的聚合。乌迪·达汉(Udi Dahan)曾经写过一篇文章,讲述了Sagas是(在他的特定情况下)正确建模的系统中唯一的聚合。我会查找并更新此答案。

There are different means of implementing Sagas. Reaching from stateless event handlers that publish commands all the way to carrying all the state and basically being the domain's aggregates themselves. Udi Dahan once wrote an article about Sagas being the only Aggregates in a (in his specific case) correctly modeled system. I'll look it up and update this answer.

还有基于文档的Sagas的概念。

There's also the concept of document-based sagas.