meteor-space / event-sourcing

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

Only call aggregate.replayEvents if there are remainingEvents to be replayed #74

Closed rhyslbw closed 8 years ago

rhyslbw commented 8 years ago

When the aggregate repository can rehydrate an aggregate only using a snapshot, we should avoid calling aggregate.replayEvents(remainingEvents)