CrackOps
Interview PrepTracksLinuxAWS LabSoonInterview RoomSoon
Sign inStart free
CrackOps

Interview prep for the people who keep production up.

[email protected]
ProductInterview PrepTracksDashboardInterview Room
RolesDevOpsSREPlatformCloud
CompanyAboutContactPrivacyTerms
© CrackOps
Tracks/Infrastructure System Design
Expert 5 minSystem design

Design a UPI payments platform that rides a 10x festival peak without losing or double-charging a payment

Scenario

You run the platform team at an Indian UPI payments app (a TPAP) with 90 million monthly users, routing payments through three sponsor PSP banks to the NPCI UPI switch. A normal evening peak is about 3,000 payments per second; during last year's biggest sale day it hit 22,000 for forty minutes, two large issuer banks started timing out, app retries doubled the load, and support received 60,000 'money debited but payment failed' tickets. Marketing expects 30,000 payments per second this season.

The interviewer asks

“Design the transaction platform for this year's festival peak. Walk me through the request flow, how you guarantee a payment is submitted exactly once, and how you stop one slow bank from taking the whole app down.”

The 30-second answer

I treat every payment as a state machine keyed by an idempotency key and a single UPI transaction ID, and a timeout is never a failure: it becomes PENDING and is resolved by status check, never by re-sending. The synchronous path is kept thin and protected by admission control, per-PSP and per-issuer-bank bulkheads and circuit breakers, while everything that can be asynchronous goes through an outbox into Kafka. The real ceiling is the banks, so capacity math starts from contracted PSP TPS and issuer health, with headroom and a degradation ladder for the rest. Every SLI is sliced per bank and per response-code class, because one sick bank hides inside a healthy average.

Sign in to finish this question

A free account unlocks the rest of it, and saves your progress across every track.

  • The voiced mock interview (5 min)
  • The full senior answer, step by step
  • Animated architecture diagrams
  • The whole conversation, 14 turns
  • Deep dive: how it works, mistakes, risks and trade-offs
  • 3 copy-ready command snippets
  • 5 follow-up questions they'll ask next
  • A self-check of 8 things interviewers listen for
Create a free accountSign in

More Infrastructure System Design interview questions

  • How would you keep a trading platform up all through market hours and prove every change to an auditor?
  • Design disaster recovery for a trading platform with an RTO under 15 minutes and an RPO near zero.
  • You have two weeks to ship multi-region failover for live matches, and DNS failover is off the table. What do you build?
  • Leadership wants active-active across two regions for payments. How do you keep transaction state strictly consistent?
  • Design reconciliation so money is never lost or duplicated, even when services crash mid-payment
  • Design the home-feed serving path for hundreds of millions of members, fast and degrading gracefully
All Infrastructure System Design questions