zilverline / sequent

CQRS & event sourcing framework for Ruby
https://www.sequent.io
MIT License
541 stars 58 forks source link

Base event migration on minimum in-progress transaction id #406

Closed erikrozendaal closed 7 months ago

erikrozendaal commented 7 months ago

The online replay process replays all events that have a transaction id less than the minimum in-progress transaction id. The offline replay process then replays all events inserted with a greater or equal transaction id.

This avoids having to track all replayed event ids during the online process and excluding these during the offline process. This increases performance is in both processes.