我执行域事件中的框架对我们的应用,下面是相同的伪代码,想知道是否有任何明显的警告 的框架要设计2步,以坚持域事件(重建模型状态后柜面要求或我们添加说,报告系统对组合而定)和出版基础设施 存储 begin txn
update model
Domaineventpublsisher.publish(event)
events serialized and stored to the persi
我想在事务完成后发布域事件。所以我在这里跟着这篇文章: http://www.jayway.com/2013/06/20/dont-publish-domain-events-return-them/,也有看看这个SO职位:Should I Pass a repository to a Domain Method that fires an Event 有道理...但我很困惑,如何解决接口采集到的