Skip to main content

Module dedup

Module dedup 

Source

Structs§

ClaimEvidence
Where an in-flight claim’s row would be, recorded with the claim.
DedupCache
Haematite-backed idempotency-key cache for the lightweight dedup contract.
DedupEntry
Persisted dedup cache entry for one producer idempotency key.
DedupHeadCounts
The dedup head counters of this process, read at one moment.
DedupSweepReport
Summary produced by a dedup TTL sweep.
DedupSweeper
Configurable TTL sweeper for haematite-backed dedup entries.
InFlightClaim
One claim in flight at a start: its key, when it was claimed, and where its row would be when the claim recorded that.

Enums§

DedupDecision
Result of checking or claiming an idempotency key.

Functions§

dedup_head_counts
The dedup head counters of this process as they stand now: refusals (HEAD_REFUSALS), lost races (HEAD_RECORD_LOST_RACES) and repairs (HEAD_REPAIRS).
key_hash
Hashes a producer idempotency key into a deterministic stream-key suffix.