On Tue, Sep 29, 2009 at 11:56 AM, Rickard Öberg <[email protected]> wrote:

> It *could* do this by building up its own view of the domain model by only
> listening to events. However, it is much simpler to query the domain model
> for this data when the event comes in, transform it into the denormalized
> version, and then save it. So, it is a combination of events and querying.

Fair enough.

> It depends largely on whether you consider the statistics service to be
> entirely external to the application or not. In this case I chose to let the
> statistics function be a part of our application, so it may do the query of
> the domain model to get the data it needs.

Yes, I agree that our preference to "black or white" stances in
hypothetical debate is often not working well in the real world and
"gray or grey" is more the norm, balances has to be struck and common
sense needs some space too.


-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to