gautema / CQRSlite

A lightweight framework to help creating CQRS and Eventsourcing applications in C#
Other
1.1k stars 266 forks source link

Process manager / Saga vs Session #71

Closed GuiguiMtl closed 6 years ago

GuiguiMtl commented 6 years ago

I am pretty new at CQRS, and I was wondering, as there is no way in CQRS Lite (or at least I don;t see any) to handle long running processes or saga, is this why the Session exists ? If not, I feel like there is something I don't understand in CQRSLite. Should we create our process managers/sagas ?

gautema commented 6 years ago

Hi.

The session is for short transactions spanning several aggregates. It is not related to a saga in any way. There is no built in way to support sagas in CQRSlite. So you have to do the implementation yourself or use another library to handle the sagas for you.

GuiguiMtl commented 6 years ago

Thanks for the fast answer