modernice/goes

Snapshot on repository fetch

Opened this issue · 0 comments

Would it be possible to have a snapshot on a repository read operation? I am aware that the current implementation writes snapshots on write. Additionally I am aware that there is a CachedRepository however, this approach would only really work for aggregates that don't change often as it doesn't check for a more recent version of the aggregate on fetch, unless we added additional logic to constantly invalidate the cache.