Designing UPI - System Design
Last Updated :
10 Jun, 2024
Designing a Unified Payments Interface (UPI) system involves creating an architecture that enables real-time inter-bank transactions through a seamless and secure platform. Key components include user interfaces, a central UPI switch managed by the National Payments Corporation of India (NPCI), backend systems of participating banks, and third-party service providers.
- The system supports core functionalities such as user registration and authentication, payment initiation and authorization, inter-bank transaction processing, and real-time settlement.
- Security measures like encryption and multi-factor authentication ensure compliance and protect against fraud, making UPI a reliable and efficient payment solution.
- The UPI is a real-time payment system that facilitates inter-bank transactions by instantly transferring funds between two bank accounts on a mobile platform.
.webp)
Important Topics for UPI system design
Below are the functional requirements for UPI system design:
- User Registration and Authentication- Users should be able to register and create a UPI account. Provide secure authentication mechanisms (e.g., PIN, biometric authentication).
- Bank Account Linking- Users should be able to link multiple bank accounts to their UPI profile. Facilitate the management of linked bank accounts (e.g., add, remove, and update account details).
- Payment Address Management- Users should be able to create and manage Virtual Payment Addresses (VPAs).
- Money Transfer- Support person-to-person (P2P) transfers. Support person-to-merchant (P2M) payments. Enable scheduled and recurring payments.
- Transaction History- Provide users with a detailed transaction history, including status and timestamps.
- Notifications- Send real-time notifications for all transactions (e.g., payment success, failure).
- Payment Requests- Allow users to request payments from other UPI users.
- QR Code Payments- Generate and scan QR codes for quick and easy payments.
- Bill Payments- Support utility bill payments through the UPI interface.
Below are the non-functional requirements for UPI system design:
- Scalability- The system should handle a large number of users and high transaction volumes. Support horizontal scaling to manage increasing load efficiently.
- Performance- Ensure low latency for transaction processing and user interactions. Provide real-time transaction processing capabilities.
- Reliability- Ensure high availability with minimal downtime. Implement failover mechanisms to handle system failures gracefully.
- Security- Implement robust security measures to protect user data and financial transactions. Ensure compliance with financial regulations and standards (e.g., PCI-DSS).
- Consistency- Ensure consistency in transactions to avoid discrepancies and double-spending. Implement mechanisms to ensure eventual consistency in a distributed system.
- Compliance- Adhere to regulatory requirements and guidelines set by financial authorities. Ensure data privacy and protection in compliance with relevant laws.
- Usability- Design a user-friendly interface that is easy to navigate. Ensure accessibility for users with different levels of technical expertise.
Below is the capacity estimation for UPI system design:
- Traffic Estimate
- Users: 100 million users
- Daily Active Users (DAU): 10 million users
- Transactions per User per Day: 5 transactions
- Total Transactions per Day: 50 million transactions
- Storage Estimate
- Average Transaction Size: 500 bytes
- Daily Data: 50 million * 500 bytes = 25 GB
- Monthly Data: 25 GB * 30 = 750 GB
- Yearly Data: 750 GB * 12 = 9 TB
- Bandwidth Estimate
- Request Size: 1 KB
- Response Size: 1 KB
- Total Requests per Day: 50 million
- Total Data per Day: (50 million * 2 KB) / (1024 * 1024) = ~95 GB
- Memory Estimate
- Active Users Cached: 1 million
- Data per User: 1 KB
- Total Memory: 1 million * 1 KB = 1 GB
A high-level diagram for a UPI system provides an overview of the main components and their interactions. At the top layer, users interact with UPI through mobile applications or web interfaces provided by banks or third-party service providers (e.g., Google Pay, PhonePe). These interfaces connect to the UPI service, a centralized system managed by the National Payments Corporation of India (NPCI).
- The UPI service acts as a switch that handles transaction requests, routing them to the appropriate bank's backend systems. Each participating bank has its own infrastructure to manage account verification, balance checks, and transaction processing.
- The UPI switch facilitates real-time communication and settlement between the payerâs and payeeâs banks. Additionally, the system incorporates security mechanisms, including encryption and authentication, to ensure secure transactions.
- APIs allow third-party apps to integrate UPI functionalities, extending the systemâs usability and accessibility. This high-level structure ensures efficient, secure, and seamless inter-bank transactions.

The diagram illustrates the flow of a Unified Payments Interface (UPI) transaction, which is a real-time payment system developed by the National Payments Corporation of India (NPCI). It shows the interaction between various entities involved in a UPI transaction. Hereâs a detailed explanation:
1. Entities
- Customer (Payer): The individual initiating the payment.
- Payer (Receiver) PSP: The Payment Service Provider (PSP) of the payer, which facilitates the transaction.
- Remitter/Issuer Bank: The bank of the payer.
- Beneficiary Bank: The bank of the payee.
- Payee (Receiver) PSP: The Payment Service Provider of the payee.
- NPCI UPI Network: The central network that processes UPI transactions.
- VPA Management Service: Service for managing Virtual Payment Addresses (VPAs).
- QR Code Generator/Scanner Service: Service for generating and scanning QR codes for payments.
2. Flow of the Transaction
- VPA Creation:
- The customer creates a Virtual Payment Address (VPA) via their PSP's mobile app using the VPA Management Service.
- The VPA creation request is sent to the VPA Management Service, and a response is received.
- Initiating Payment:
- The customer can initiate a payment by scanning a QR code using the QR Code Generator/Scanner Service.
- The QR code is scanned, and a response is received to initiate the payment.
- Payment Authorization:
- The customer uses their mobile PSP app to authorize the payment using MPIN (Mobile Personal Identification Number).
- The payer PSP sends a payment request to the NPCI UPI Network
- Processing Payment:
- The NPCI UPI Network sends a debit request to the Remitter/Issuer Bank.
- The Remitter/Issuer Bank responds to the NPCI UPI Network with the bank response.
- The NPCI UPI Network sends a credit request to the Beneficiary Bank.
- The Beneficiary Bank responds to the NPCI UPI Network with the bank response.
- Payee Details Validation:
- The NPCI UPI Network requests payee details from the Payee PSP.
- The Payee PSP validates the details and responds to the NPCI UPI Network.
- Completion of Transaction:
- The NPCI UPI Network sends a payment debit response to the Payer PSP.
- The Payer PSP notifies the customer of the payment debit.
In Conclusion, The customer initiates a payment using their mobile app by either creating a VPA or scanning a QR code. The payer PSP sends a payment request to the NPCI UPI Network. The NPCI UPI Network processes the payment by interacting with the payer's and payee's banks. The transaction is completed, and the customer is notified of the payment status.
A low-level diagram for a UPI system illustrates the detailed interaction between its core components. At the user level, we have mobile apps and web interfaces that allow users to register, authenticate, and initiate transactions. These interfaces communicate with the UPI service through APIs, which are crucial for handling requests and responses.
- The UPI service, managed by the National Payments Corporation of India (NPCI), acts as a central switch that routes transaction requests to the appropriate bank systems. Each participating bank has backend systems that verify user account details, check balances, and process transactions.
- The UPI switch ensures real-time transaction processing and settlement by securely relaying information between the payerâs and payeeâs banks. Additionally, the system includes security modules for encryption and fraud detection, ensuring the integrity and confidentiality of transactions.
- Third-party service providers integrate with the UPI service via APIs to offer UPI functionalities within their apps, expanding the system's reach and usability.

The diagram illustrates the architecture and flow of the Unified Payments Interface (UPI) system, which is a real-time payment system developed by the National Payments Corporation of India (NPCI). It shows how different entities interact within the UPI ecosystem to facilitate transactions. Hereâs a detailed explanation:
1. Entities and Components
- Mobile Application:
- USSD (*99#): A service that allows users to perform banking transactions using a basic mobile phone without internet access.
- 3rd Party Apps (Collect Only): Third-party applications that can initiate payment collection requests.
- Internet Banking: Traditional internet banking services accessed via mobile applications.
- Banks: Standard Interface: The interface provided by banks to interact with the UPI system.
- Payment Service Providers (PSPs): Entities that provide payment services to customers and merchants, facilitating transactions through the UPI system.
- Unified Payment Interface (UPI): The central platform that processes UPI transactions, developed and managed by NPCI.
- Central Repository: A centralized database that stores transaction data and other relevant information.
- NPCI: National Payments Corporation of India, the organization that manages the UPI system.
2. Other Payment Systems:
- APBS/NACH: Aadhaar Payment Bridge System/National Automated Clearing House.
- IMPS: Immediate Payment Service.
- AEPS: Aadhaar Enabled Payment System.
- RuPay: A domestic card payment network.
- Ecom: E-commerce transactions.
3. Flow of Transactions:
- USSD (*99#):
- Users can initiate transactions using the USSD code *99# on their mobile phones.
- The request is sent to the Central Repository and then to the UPI system for processing.
- Mobile Applications:
- Users can initiate transactions using various mobile applications, including third-party apps and internet banking apps.
- These applications interact with the banks' standard interfaces to process transactions.
- Banks:
- Banks provide a standard interface to interact with the UPI system.
- They act as intermediaries between the users and the UPI system, facilitating the transactions.
- Payment Service Providers (PSPs):
- PSPs facilitate the transactions by interacting with the UPI system and the banks.
- They ensure the smooth processing of transactions initiated by users.
- Unified Payment Interface (UPI):
- The UPI system processes the transactions by interacting with the banks and other payment systems.
- It ensures real-time processing and settlement of transactions.
- Central Repository:
- The Central Repository stores transaction data and other relevant information.
- It interacts with the UPI system to provide necessary data for transaction processing.
- Other Payment Systems:
- The UPI system can interact with other payment systems like APBS/NACH, IMPS, AEPS, RuPay, and Ecom to facilitate various types of transactions.
The diagram shows how users can initiate transactions using different methods (USSD, mobile apps, internet banking). Banks provide a standard interface to interact with the UPI system. Payment Service Providers (PSPs) facilitate the transactions. The UPI system processes the transactions in real-time, interacting with banks and other payment systems. The Central Repository stores transaction data and interacts with the UPI system.
Microservices Used in UPI System Design
Below are some microservices used in UPI System Design:
- User Service
- POST /register: Register a new user.
- POST /login: Authenticate a user.
- Bank Service
- POST /link-account: Link a bank account.
- GET /balance: Get account balance.
- Transaction Service
- POST /transfer: Transfer money.
- GET /history: Get transaction history.
- Notification Service
- POST /notify: Send notification.
Scalability for UPI System Design
Conclusion
Designing a UPI system requires careful consideration of both functional and non-functional requirements. By leveraging a microservices architecture, implementing caching, and ensuring fault tolerance, the system can efficiently handle a large number of users and transactions. Scalability is achieved through horizontal scaling, load balancing, and database sharding, ensuring the system remains performant and reliable even under high load.
Become a System Design expert and also get 90% fee refund on completing 90% course in 90 days! Take the Three 90 Challenge today.
Step into the Three 90 Challenge – 90 days to push limits, break barriers, and become the best version of yourself! Don't miss your chance to upskill and get 90% refund. What more motivation do you need? Start the challenge right away!
Similar Reads
Design Principles in System Design
Design Principles in System Design are a set of considerations that form the basis of any good System. But the question now arises why use Design Principles in System Design? Design Principles help teams with decision-making, and is a multi-disciplinary field that involves trade-off analysis, balanc
5 min read
System Design vs. Software Design
System Design and Software Design are two important concepts in the creation of robust and effective technological solutions. While often used interchangeably, they represent distinct disciplines with unique focuses and methodologies. System Design encompasses the architecture and integration of har
8 min read
System Design - Design a Sequencer
Pre-requisites: Logic gates Sequencer is a device that generates a sequence of unique identifiers or numbers. In the context of distributed systems, a sequencer is often used to generate unique IDs and objects across multiple nodes or servers. In this article, we will discuss how to design a sequenc
5 min read
Design Web Crawler | System Design
Creating a web crawler system requires careful planning to make sure it collects and uses web content effectively while being able to handle large amounts of data. We'll explore the main parts and design choices of such a system in this article. Important Topics for Web Crawler System Design Require
8 min read
What is Systems Design - Learn System Design
Systems Design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. It involves translating user requirements into a detailed blueprint that guides the implementation phase. The goal is to create a well-organized and e
10 min read
Instructional System Design
Instructional System Design (ISD) is a systematic and disciplined approach to growing powerful and efficient educational experiences. ISD presents a structured framework for designing instructional material that facilitates the most fulfilling optimal outcomes. Its number one aim is to enhance the l
8 min read
System Design Life Cycle | SDLC (Design)
System Design Life Cycle is defined as the complete journey of a System from planning to deployment. The System Design Life Cycle is divided into 7 Phases or Stages, which are: 1. Planning Stage 2. Feasibility Study Stage 3. System Design Stage 4. Implementation Stage 5. Testing Stage 6. Deployment
7 min read
Getting Started with System Design
System design is the process of designing the architecture and components of a software system to meet specific business requirements. The process involves defining the system's architecture, components, modules, and interfaces, and identifying the technologies and tools that will be used to impleme
9 min read
What is AI-Driven System Design?
AI-Driven System Design integrates artificial intelligence to enhance the architecture, development, and optimization of systems. By integrating AI algorithms and models, it enables smarter decision-making, dynamic adaptability, and improved efficiency in system design and operation. Important Topic
11 min read
System Design Tutorial
System Design is the process of designing the architecture, components, and interfaces for a system so that it meets the end-user requirements. This specifically designed System Design tutorial will help you to learn and master System Design concepts in the most efficient way from basics to advanced
4 min read
Types of System Design
System design is a crucial process that involves defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements. It plays a pivotal role in developing complex software and hardware systems, ensuring their scalability, reliability, and performance.
7 min read
Principles in Digital System Design
We are living in a world where we are surrounded by computational going all around and devices connected to the internet to what we refer to as IoT(Internet of Things). Even our IoT devices are changing so rapidly these days with the technology stack of machine learning and artificial intelligence.
5 min read
Interactive System Design
Interactive System Design is an Approach to Creating User-friendly and effective Interactive Systems. It always focuses on designing a good User Experience(UX) and User Interface(UI) to ensure that users can interact with the system easily and effectively. Websites, Mobile Applications, and Software
6 min read
Design Principles for System Design in Go
In this article, we will discover essential design principles for efficient system architecture in Go programming. Learn how to optimize concurrency, leverage interfaces, and manage errors effectively, ensuring robust and scalable solutions. Important Topics for Design Principles for System Design i
8 min read
Design Notification Services | System Design
If we are building an e-commerce application or a booking system or anything of that sort, we will always have a notification service that will be used to notify your consumers. Let us now look at the requirements to build a notification service. Topics for Designing Notification ServicesRequirement
8 min read
Advantages of System Design
System Design is the process of designing the architecture, components, and interfaces for a system so that it meets the end-user requirements. System Design for tech interviews is something that canât be ignored! Almost every IT giant whether it be Facebook, Amazon, Google, Apple or any other asks
4 min read
System Design Tutorial for Machine Learning
System design in machine learning is vital for scalability, performance, and efficiency. It ensures effective data management, model deployment, monitoring, and resource optimization, while also addressing security, privacy, and regulatory compliance. A well-designed system enables seamless integrat
5 min read
Designing Twitter - A System Design Interview Question
Designing Twitter (or Facebook feed or Facebook search..) is a quite common question that interviewers ask candidates. A lot of candidates get afraid of this round more than the coding round because they don't get an idea of what topics and tradeoffs they should cover within this limited timeframe.
15+ min read
Design a Logistics System
Design a Logistics System (Object Oriented Design). Tell about the different classes and their relationships with each-other. It is not a System Design question, so scope of this question is only to define different classes (with it's attributes and methods) Asked In: Adobe , Paytm Solution: Letâs a
7 min read