ddd-by-examples / event-source-cqrs-sample

Sample ES/CQRS application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to handle big data when recreate domain

liseri opened this issue · comments

Excuse me , I want ask a question please, how to handle big data, eg. more than millions, when recreate domain, from start to end?

You can use the idea of snapshotting - periodic state flushed to persistent storage, e.g. after every 1000th event.

Be careful with snapshotting - you are now coupled to state (instead of deltas)