Exactly-Once, Damn It: Building a Payment Idempotency Layer

From a naive proxy to distributed locks, Redis caches, and SHA-256 tamper detection — in six problems.