Re: Clustering a DDD/CQRS/ES app

Rickard Öberg <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <[email protected]>
On 4/8/13 16:12 , Greg Young wrote:
> Can I get a dirty read in the middle?

 From the repo: nope, because the aggregate is locked while the event is 
being sent to the eventstore. Applying a command is a synchronous 
operation. The handler is a function: 
Function<CommandContext<?>,InteractionContext>, i.e. submitting a 
command will wait until it has been successfully applied. On my local 
dev machine it's roughly 2-5ms for the whole REST call from start to finish.

 From the view: nope, because the eventstore will drop faulty events as 
per previous algo, so will never be applied in the underlying 
database(s) (Neo4j and Lucene in my example).

Teh awesome?

/Rickard



------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.