Saga support
------------

                 Key: QI-262
                 URL: http://issues.ops4j.org/browse/QI-262
             Project: Qi4j
          Issue Type: New Feature
            Reporter: Niclas Hedhman
            Assignee: Rickard Öberg


Rickard wrote;
Another interesting thing once we have the EventSourcing in Qi4j is that 
there's a complementary concept to Entities called Sagas, which basically 
subscribe to events and perform business transactions, i.e. they create 
commands in the event. But they also have identities, like entities. Here's a 
good summary:
http://abdullin.com/journal/2010/9/26/theory-of-cqrs-command-handlers-sagas-ars-and-event-subscrip.html

It should be quite simple for us to create Saga's as special cases of 
EntityComposite, and handle the event routing etc. I don't have any specific 
usecase for it right now though, which is a problem. The closest for me is my 
statistics handling for cases, where currently a service get an event and then 
read the model to get all necessary statistics and publish it to a db. With 
Sagas it could instead build up the necessary state within the Saga, as opposed 
to getting it from the domain model (which should be for handling Commands 
only, really).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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

Reply via email to