Design a Payment System
Prompt: "Design the payment system for an e-commerce company."
Payments reward paranoia. The grading is about never charging twice, never losing money, and being able to prove it: idempotency, a state machine around unreliable providers, a double-entry ledger and reconciliation.
In this lesson
- Learning objectives
- 1. Requirements
- 2. Estimates
- 3. Core entities and API
- 4. High-level design
- 5. Deep dives
- 6. Operations and cost
- 7. What each level adds
- Self-check
Questions covered
- Design a payment system that never double-charges.
- How do you handle a webhook that arrives twice or out of order?
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.