Interface RealtimeReducerOptions

interface RealtimeReducerOptions {
    maxSeenEventIds?: number;
    maxTombstones?: number;
    now?: (() => number);
    tombstoneTtlMs?: number;
}

Properties

maxSeenEventIds?: number
maxTombstones?: number

Upper bound on the number of delete tombstones retained in state. Outside a replace snapshot, tombstones are never cleared, so a long-lived delta subscription leaks one entry per delete. When the cap is exceeded the oldest tombstones (by deletedAt) are evicted, mirroring the maxSeenEventIds cap. Defaults to 1024; set to 0 to disable the count bound.

now?: (() => number)
tombstoneTtlMs?: number

Maximum age, in milliseconds, of a retained tombstone measured from its deletedAt. Tombstones older than this are dropped on the next reduce. Disabled (no age bound) when omitted.