System design interview

41:00 left

Card authorisation service

HardDesign 20 min suggested

Design the service that approves or declines card payments for 30 issuing banks. It must answer within 150 ms at p99, survive a full region outage and never approve the same authorisation twice.

Requirements

  • Sketch the components and data flow
  • Explain how you keep p99 under 150 ms
  • Describe failover across two regions
  • Call out how you prevent double approvals
Example
Peak load: 4,000 auths/sec
Availability target: 99.99%
Data retention: 7 years

Tests

2 / 4 passing
  • Components identified
  • Latency budget explained
  • Multi-region failover
  • Double-approval guard