SnapshotProperties

Where the snapshots are, and how the snapshot maintenance runs. Each aggregate type keeps its snapshots on one store; a store that replaces it is filled from the log, its snapshot queries answering rebuilding meanwhile.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

How long a command's cache miss waits for its snapshot before it takes the load as failed and replays the log, counted in wow.store.fallbacks as timed-out: a snapshot is only a cache, so a store that stops answering costs a replay, not the command's wait. Below wow.wait.default-timeout, so such a command still answers at its commit.

Link copied to clipboard

How often the snapshot maintenance runs: state revision claims, in-place rebuilds and backfill checks.

Link copied to clipboard

How an in-place rebuild rewrites the snapshots.

Link copied to clipboard

The store of wow.stores every aggregate's snapshots are kept on, unless its wow.aggregates.[<context>.<aggregate>].snapshot.store names another; wow.log.store when not set. Its built-in subscription is wow.snapshot. The write side, the state reads and the snapshot queries read it, unless an aggregate's query.snapshot.store names another, which then keeps a copy for its queries.

Link copied to clipboard

How many snapshots of a partition the snapshot subscriptions write together at most.

Functions

Link copied to clipboard
fun options(defaultWaitTimeout: Duration = WaitPlan.DEFAULT_TIMEOUT.toJavaDuration()): SnapshotOptions

The node's snapshot maintenance, write and load options; a load waits less than defaultWaitTimeout.