Expand description
Idempotency keys — retry-safe session creation.
When a client provides an idempotency key, the coordinator stores the key → session_id mapping. A retried request with the same key returns the original session instead of creating a duplicate.
§OCP design
The IdempotencyStore trait allows different backends (in-memory,
Redis, database). New backends are added by implementing the trait.
Structs§
- InMemory
Idempotency Store - In-memory idempotency store. Thread-safe via Mutex.
Traits§
- Idempotency
Store - Trait for idempotency key stores.
- Idempotent
Coordinator - Extension trait for
Coordinatoradding idempotent session creation.