Hi, we are using Axon with event store.
We have sagas processing events to issue commands, which in turn publish further events (and/or perform actions such as sending an email). The issue we have is related to idempotency of the commands issued by the saga, if for some reason we lose the database that stores saga state how can we recover from this?
We cannot simply replay all events to rebuild the database as the further events that have already been published will be published a second time (or emails etc re-sent).
If we have a backup of the DB it is extremely likely that it will be out of date causing the same issue as above for events that were issued after taking the backup but before the DB was lost.
Has anyone encountered this scenario and if so how did you solve the problem?