Design Peer-to-Peer UPI Transfers for Google Pay in India
Last updated: November 29, 2026
Quick Overview
Design the Google Pay India backend for UPI money transfers between bank accounts, including handling the NPCI switch, bank timeouts, pending states, and festival-day traffic peaks.
0
0
0 solved
Design the Google Pay India backend for UPI money transfers between bank accounts, including handling the NPCI switch, bank timeouts, pending states, and festival-day traffic peaks.
A hard Google onsite question for the Next Billion Users and payments teams. The interviewer probes integration with an external switch that Google does not control, uncertain outcomes from timeouts, reconciliation, and scaling for extreme peaks such as Diwali.
What the Interviewer Expects
- Explain the payer app, PSP bank, NPCI switch, and issuer and acquirer bank flow
- Model transactions with explicit uncertain states after timeouts
- Resolve unknown outcomes through status checks and reconciliation
- Keep PIN entry and credentials within the NPCI-provided secure component
- Scale for many-times-normal peaks with backpressure and queueing
- Avoid duplicate debits via idempotent transaction ids
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- What do you show the user when the bank times out after debit?
- How do you handle a PSP bank partner being degraded?
- How would you design rewards (scratch cards) without slowing payments?
- How do you detect and limit fraud on new accounts?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Users send money via UPI ID, phone number, or QR code; payments to merchants too.
- Google Pay is a third-party app working through PSP partner banks, which connect to the NPCI UPI switch; NPCI rout...
High-Level Design
- App collects payee and amount; UPI PIN is entered in the NPCI secure library and encrypted for the issuer bank, never visible to Google.
- Payments API creates a transaction with a unique ...