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.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

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
UPI
external dependencies
uncertain outcomes
reconciliation
peak load
idempotency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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
  1. App collects payee and amount; UPI PIN is entered in the NPCI secure library and encrypted for the issuer bank, never visible to Google.
  2. Payments API creates a transaction with a unique ...

Submit Your Answer
Markdown supported