node-cqrs-saga
node-cqrs-saga copied to clipboard
i need a saga example
i need a saga example , more formal example :)
Will come... not finished now...
an example could be something like this oder process: http://msdn.microsoft.com/en-us/library/jj591569.aspx
for now look at the synopsis: https://github.com/adrai/node-cqrs-saga/tree/master/synopsis/order
The synopsis is missing. I'm also struggling with how to use saga and domain with each other. Is there an example somewhere that explicitely shows how to use everything together?
currently only this is exists: https://github.com/adrai/node-cqrs-saga/blob/master/test/integration/integrationTest.js#L142
I think we need not only example of saga, but also some explanation about what is actually "saga" means. I spend some time trying to understand what it's all about and now I know that it is a design pattern. :)
I found a good article about it: "Saga Pattern | How to implement business transactions using Microservices" (Denis Rossa) Part one: https://blog.couchbase.com/saga-pattern-implement-business-transactions-using-microservices-part/ Part two: https://blog.couchbase.com/saga-pattern-implement-business-transactions-using-microservices-part-2/
Original paper describing saga pattern: https://www.cs.cornell.edu/andru/cs711/2002fa/reading/sagas.pdf (Cornell University)
@adrai maybe we should place those links at the bottom of readme file - what do you think?
Can you add a PR?