Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Snapshot and SnapshotStore for the Oris kernel.

Checkpointing/snapshots are strictly an optimization layer. The source of truth is the event-sourced execution log (see crate::kernel::execution_log::ExecutionLog and crate::kernel::event::EventStore). Snapshots only speed up replay by providing initial state at a given seq; they do not replace the log. Every snapshot must carry at_seq (the seq up to which state has been projected).

Structs§

InMemorySnapshotStore
In-memory snapshot store: one snapshot per run (latest overwrites).
Snapshot
A snapshot of state at a given sequence number.

Traits§

SnapshotStore
Snapshot store: load latest snapshot or save a new one (optimization layer).