Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Replay events in batches #62

Open
rhyslbw opened this issue Jan 29, 2016 · 0 comments
Open

Feature/Replay events in batches #62

rhyslbw opened this issue Jan 29, 2016 · 0 comments

Comments

@rhyslbw
Copy link
Member

rhyslbw commented Jan 29, 2016

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

Sequential batching

Events replayed in chronological order, across all batches.

  • each batch depends on completion of the previous

Lifecycle hooks for implementation to control state-change while running

Either events or simple hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant