ReplayGate

How a node's replays of the log that could take every connection the store's appends draw from run, inside replay, which the host runs under the query bulkhead of the aggregate's log store:

  • the point reads of KernelStateReads: an aggregate's latest state without a snapshot, a state at a version or a time, and a trace;

  • a subscription's rebuild of a shared state (SharedStates.rebuild) that replays more than one page of the log (me.ahoo.wow.spi.log.VersionPages.SIZE streams). A rebuild of a page or less is one statement, as the executor's own load of a state on a cache miss, and does not run inside it.

Background replays (the access walk's) also ask whether that store's writes are pressed (pressed), and give way while they are.

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun pressed(type: AggregateType): Boolean

Whether the writes of type's log store pressed in their last period, as the store's adaptive query bound read them (callers waiting for a connection, or appends slower than their baseline); false when nothing reads them.

Link copied to clipboard
abstract suspend fun <T> replay(ref: AggregateRef, read: suspend () -> T): T

Runs read, the replay of ref's log, or throws to refuse it (the bulkhead's wow.query.busy).