posted @ 2013-03-26 11:23
03 2013 档案
posted @ 2013-03-12 09:50
posted @ 2013-03-06 09:38
posted @ 2013-03-06 09:27
|
|||
03 2013 档案
摘要:最近一直在思考一个问题:有没有这样一种可能,就是一个领域模型的状态不依赖于外部,它只负责接收外部的事件,然后根据这些事件做出响应;响应分两种:根据模型当前的内存状态进行业务逻辑处理,然后产生事件,注意:这个过程不会改变模型当前的内存状态;根据事件改变自己的状态;另外,也是最重要的,领域模型不用关心自己所产生的事件到底怎么样了,比如不关心有没有持久化,不关心是否和别的事件有并发冲突。它只管根据自己当前的内存状态做上面这两点的响应;如果这样的设想有可能,那领域模型就是真正的中央业务逻辑处理器了,和CPU很类似了。这样它才能真正快起来。简单的说就是:事件->模型->事件模型只管响应事件,
阅读全文
posted @ 2013-03-26 11:23
摘要:原文地址:http://www.dancres.org/reading_list.htmlIntroductionI often argue that the toughest thing about distributed systems is changing the way you think...
阅读全文
posted @ 2013-03-12 09:50
摘要:I don't believe there is anything wrong with using multiple repositoriesto fetch data in a transaction. Often during a transaction an aggregate will n...
阅读全文
posted @ 2013-03-06 09:38
摘要:Just a quick question on saga persistence - how do you persist sagastate and dispatch messages while avoiding transactions and 2PC?Long story: I'm try...
阅读全文
posted @ 2013-03-06 09:27
|
|||