Replaying Events
The ability to replay events both for disaster recovery and upgrades and enhancements is one of the many underrated benefits of event sourcing. If you need to change a projection or aggregate, you can deploy the new code and simply replay events to generate the new state. If a piece of your application goes down and loses state, again replay is your new best friend.
You need to remember a few things when working with replays to keep your application safe, but as long as you’re aware of those from the start, event replay will remain a beneficial tool in your arsenal. You’ve seen many of these things already as event sourcing laws, including never using wall clocks, never relying on information outside the event, limiting shared ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access