node-cqrs-saga icon indicating copy to clipboard operation
node-cqrs-saga copied to clipboard

i need a saga example

Open izengliang opened this issue 10 years ago • 7 comments

i need a saga example , more formal example :)

izengliang avatar Sep 06 '14 01:09 izengliang

Will come... not finished now...

adrai avatar Sep 06 '14 05:09 adrai

an example could be something like this oder process: http://msdn.microsoft.com/en-us/library/jj591569.aspx

adrai avatar Sep 06 '14 06:09 adrai

for now look at the synopsis: https://github.com/adrai/node-cqrs-saga/tree/master/synopsis/order

adrai avatar Sep 06 '14 06:09 adrai

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?

blissi avatar Nov 22 '17 16:11 blissi

currently only this is exists: https://github.com/adrai/node-cqrs-saga/blob/master/test/integration/integrationTest.js#L142

adrai avatar Nov 22 '17 19:11 adrai

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?

uniconstructor avatar Aug 16 '18 10:08 uniconstructor

Can you add a PR?

adrai avatar Aug 16 '18 19:08 adrai