Description
When clients retry failed requests, they can create duplicate writes. Idempotency keys prevent this.
Implementation
- Client sends
Idempotency-Key: <UUID> header with PUT requests
- ApexStore stores the idempotency key and its response for T seconds
- If the same key arrives within the TTL, return the cached response instead of executing again
- Cleanup expired keys periodically
- Configuration:
resilience:
idempotency:
enabled: true
ttl_secs: 86400 # 24h
max_keys: 100000
Labels
Description
When clients retry failed requests, they can create duplicate writes. Idempotency keys prevent this.
Implementation
Idempotency-Key: <UUID>header with PUT requestsLabels