svalaskevicius / eventflow

cqrs+es in scala
45 stars 4 forks source link

support snapshotting #29

Closed svalaskevicius closed 8 years ago

svalaskevicius commented 8 years ago

instead of switch(<Flow[Unit]>) could do switchAndSnapshot(f: args => Flow[Unit], args) or similar

svalaskevicius commented 8 years ago

or.. snapshotting could be domain event, restoring from that event is possible at the start, the only issue here is not to read all events from db but only since the snapshot.. so maybe snapshot event needs to extend a trait to be understood by the underlying mechanism