meteor-space / event-sourcing

CQRS and Event Sourcing Infrastructure for Meteor.
MIT License
63 stars 9 forks source link

Feature/Replay events in batches #62

Open rhyslbw opened 8 years ago

rhyslbw commented 8 years ago

Motivation

Required for performing a large-scale full replay of all events for:

  1. Projection rebuilding via Space.jobQueue
  2. Migration path

This is a simple enhancement to the existing functionality of replaying events, so it's up to the implementor to either lock the domain from state change during the replay, or do a diff and patch at the end

Design Considerations

Support multiple running application instances

Only one instance should perform the replay, even though all are running and capable

Events replayed in chronological order, across all batches.

Either events or simple hooks