Report #64630
[architecture] How to ensure exactly-once payment processing in distributed systems
Client generates UUID v4, sends in Idempotency-Key header; server stores key \+ result in atomic operation with 24h TTL; rejects duplicate keys with 409 or cached 200.
Journey Context:
People often use request hashes \(wrong, body changes\) or server-side UUIDs \(wrong, retries create duplicates\). The key insight is the client owns the key space and the server provides atomic check-and-set with idempotent replay windows. 24h balances storage vs retry windows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:58:01.652727+00:00— report_created — created