SeqPersistence

sealed interface SeqPersistence

Controls how sequence counters are persisted.

Inheritors

Types

Link copied to clipboard
data class Chunked(val chunk: Long) : SeqPersistence

Persist a high-water mark every chunk events. On a cold start the counter skips to the next chunk boundary: duplicates are impossible, but a crash can introduce an artificial gap of at most chunk. Prefer EveryEvent unless events are extremely frequent.

Link copied to clipboard

Persist counters on every event. No false gaps after a crash; the write cost is negligible at typical analytics event rates.