MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Projection and Classifier snapshots #18

Open MerrionComputing opened 4 years ago

MerrionComputing commented 4 years ago

To prevent having to run projections and classifiers from the beginning every time it should be possible to take "snapshots" as at a given sequence number and use these to seed any new request for a projection or snapshot to be run.

The snapshot should be stored as Blobs with the filename being some combination of projection name and sequence number.

MerrionComputing commented 4 years ago

I think a blob file with file name being e.g. snapshots/projection/{domain}/{entity}/{projection name}/{instance key}.{as of sequence number} would make the most sense as a naming standard?

(Then just have the content be the projection state as JSON)