Skip to main content

Module dedup

Module dedup 

Source
Expand description

L2 idempotency-key dedup service.

Primary production path: PG UNIQUE INDEX on the idempotency_keys projection table. This module ships the trait surface plus an in-memory implementation suitable for Tier-0 dev and unit tests. The PG-backed implementation and a potential L0 kernel WAL-scan fallback plug in under the same IdempotencyIndex contract.

Structs§

InMemoryIdempotencyIndex
In-memory IdempotencyIndexHashMap-backed. Suitable for tests and Tier-0 dev; the PG-backed production implementation lands alongside the L2 service layer.

Enums§

DedupError
Insert-side failure taxonomy for dedup stores. Lookup is always infallible (returns Option).