commanded/eventstore

Event retention policy/pruning

ukazap opened this issue · 1 comments

ukazap commented

Hi,

Does commanded currently support event retention policies/pruning of old events out of the box? If not, what are the recommended approaches or best practices for implementing event retention policies with commanded?

daveli commented

I'm afraid that this is not supported. A recommended approach would be give a stream a lifetime same as what gets done in accountancy (accounting period, e.g. year, month, etc.). You can read more about this technique here: https://www.eventstore.com/blog/keep-your-streams-short-temporal-modelling-for-fast-reads-and-optimal-data-retention