thenativeweb / node-cqrs-saga

Node-cqrs-saga is a node.js module that helps to implement the sagas in cqrs. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
http://cqrs.js.org/pages/saga.html
MIT License
61 stars 16 forks source link

i need a saga example #1

Open izengliang opened 10 years ago

izengliang commented 10 years ago

i need a saga example , more formal example :)

adrai commented 10 years ago

Will come... not finished now...

adrai commented 10 years ago

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

adrai commented 10 years ago

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

blissi commented 6 years ago

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?

adrai commented 6 years ago

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

uniconstructor commented 6 years ago

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?

adrai commented 6 years ago

Can you add a PR?