I am looking into replay for our application. We use sagas for syncing with a legacy backend (through soap services).
Now I am starting to look into replay of events (for now just to rebuild the current state of the application, no upcasting of events yet)
What I did is the following
I clean my “view” datastore and also reset all tracking tokens in my axon store (we’re using MongoDB, soon to be AxonServer ;))
Next I restarted my application, and I saw all webservice requests being issued again. And I also saw “new” events being created in the event store.
So I looked into the docs and found that you can set @AllowReplay(false) on an EventHandler. Did that on all my @SagaEventHandlers and run the test again.
Still all my sagas were kicked off again (and hence all soap requests, also the one sending data to the legacy services which leads to all kinds of issues at the backend).
So how do I prevent sagas being triggered again during replay?
I there a way to exclude the saga from replay by setting it in the saga config?
If not, than how do I prevent replayed events from being send to the “outside” world again?