Let's say I wanted to create a saga created by some event, then it sits and waits for several hours, and if nothing happens, sends some command.
Now, if this saga was all in memory, and I had to restart the application / server, the saga would be unloaded and never be seen again, right?
Would I use Event Sourcing to bring this saga to speed as soon as the system returns to the network?
If so, I will need quite a lot of separate event storage with “active sagas” that can be replayed at system startup to speed up my Sagas. This is good for me so far, but how would I implement a timeout?
I need to somehow "fake" timeouts during repeated playback, given that there may be several subsequent timeouts depending on the events included in the saga.
source
share