Skip to content

Feature/Replay events in batches #62

Description

@rhyslbw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions