Closed svalaskevicius closed 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
instead of
switch(<Flow[Unit]>)
could doswitchAndSnapshot(f: args => Flow[Unit], args)
or similar