System Design

Designing a payment system that never charges a card twice

6 min read A walkthrough of the payment-system design interview: idempotency keys, a double-entry ledger, PSP failures, and the reconciliation job that catches what code misses. Read article