madewithlove / laravel-cqrs-es

MIT License
11 stars 3 forks source link

Reset read models when doing event-store:replay #11

Closed bramdevries closed 8 years ago

bramdevries commented 8 years ago

Currently when doing event-store:replay it will still keep old read models around. Ideally these should be cleared.

Since read models can be stored in different drivers we should write the logic ourselves but instead provide an API so that people can hook into these events.

My proposal is to trigger the following application events:

event-store.replay.before event-store.replay.after

This would allow package consumers to listen for these events and executed the necessary logic.

bramdevries commented 8 years ago

Released in https://github.com/madewithlove/laravel-cqrs-es/releases/tag/0.3.4