system-designbackend
The Payment That Charged Twice
A retry is not a duplicate request — until it is. How idempotency keys actually work, why the naive version still double-charges, and the exact Postgres constraint that makes the guarantee real.
8 min read

