How Razorpay Moved 2,500 DAGs to Airflow 3, One DAG at a Time
Airflow, the scheduler behind Razorpay’s batch data pipelines, now runs on version 3.3, and we led the move from 2.10. It runs more than 2,700 DAGs and about 11,000 task runs a day, and we got there without a big-bang cutover. The official upgrade guide is the place to start for…
Most production incidents do not begin with a server dying. They begin with a deployment: dozens a day, across hundreds of services, each the moment risk enters the system. We run payments infrastructure at Razorpay. When a payments system degrades, transactions fail: merchants…
Inside Razorpay’s RTO Model: The Engineering Behind its ML Lifecycle
Contributor: Abhik Debnath In this article, we use Razorpay’s Return to Origin (RTO) risk model to explain the ML lifecycle: how we build a reproducible release, deploy it into checkout, monitor its behaviour, and use later outcomes to evaluate whether it needs retraining. We…
Preface The UPI Switch at Razorpay has evolved significantly in the five years since we started building it. The Switch is the platform that enables real-time payment processing with NPCI. When the team began, it was little more than an idea. Today it powers more than 70% of…
How Razorpay Cut Its Metrics Bill by 62% Without Losing a Dashboard
Contributor: Saijal Shrivastava We cut our metrics ingestion by 62% without deleting a single useful dashboard or breaking an alert. Daily ingestion dropped from about 450 billion samples to about 170 billion. The surprising part was not one large optimization. It was three…
CI Doesn’t Need On-Demand: Moving Our Build Pipelines to Spot Instances
Contributors: Guptaanuj CI/CD pipelines have always had a money-vs-stability problem. Run on-demand AWS instances and your build infrastructure is rock solid, expensive, and predictable. Run on spot instances and your costs drop 70–90%, but AWS can pull the rug with 2 minutes of…
How We Refresh Razorpay's Data Warehouse 10x Faster with Graphs and Indexes
Contributors: Utkarsh Koppikar Rohan Background Razorpay provides the payment infrastructure for millions of merchants globally. Behind every payment, settlement, and refund is a microservices architecture where each service owns its own database. While this keeps services…
Running Hermes at Razorpay: a Network-isolated, Self-improving “Second Brain” for every Employee
How we run a personal AI agent for everyone at Razorpay: always on, multi-model, and safe by construction. Contributors: Siddharth Tripathi Today, more than 220 Razorpay employees each have their own always-on AI agent. On a typical day, about 84 of them are actively working.…
Turning Scattered Data Into Queryable Segments at Scale: How Razorpay Built Its Customer Data…
Turning Scattered Data Into Queryable Segments at Scale: How Razorpay Built Its Customer Data Platform A consent-native CDP that serves audience segments across 500M+ user profiles in under 30ms, with PII isolated to the source systems. The Problem We Were Solving A customer…
From 750 Hours to 2 Hours: AI-Powered Security Triage at Razorpay
Co-authors: Mahlaqahaque Mh, Keertiv, Hari Prasad Pujari How we taught AI to read code like a senior security engineer Every day, Razorpay engineers ship thousands of lines of code. Every line births new security findings. SAST scanners flag suspicious patterns. Dependency…
Razorpay Oncall Agent: From 30-Minute Investigations to 90-Second AI Analysis
Our on-call engineers were spending 30 minutes investigating every production alert. Here’s what happened when we automated it. At 3 AM, alerts don’t care about your sleep schedule. When our payment infrastructure threw an error last month, our on-call engineer spent 32 minutes…
The Checkout Frustration Razorpay Fixed: Combining Payment Methods
You have a $50 gift card. Your cart is $75. The checkout says “pick one payment method.” This is a solvable problem. If you’ve ever tried to use a gift card for an online purchase, you know this frustration intimately. The gift card covers most of it, but not quite all. The…
Building a Multi-Provider Rewards Platform: An E-Commerce Approach to Rewards at Scale
We built a multi-provider rewards platform using e-commerce patterns. Here’s why that matters. You’re running a loyalty program. Customers are redeeming points for gift cards, ongoing offers, memberships, or experiences. Then your provider’s API times out. You refresh. Try…
How We Turned 5 Hours of RCA Writing Into 10 Minutes of Review
At 4 AM, after firefighting a production incident for three hours, the last thing any engineer wants to do is open a blank Google Doc and start writing. Yet that’s the reality of thorough incident documentation. After resolving high-severity incidents, producing detailed Root…
Our Obsession with Merchant Experience: Breaking the Risk Review Black Box
Contributor : Yashshree Shinde When merchants couldn’t see why their funds were on hold, trust broke down. Here’s how we rebuilt the entire experience. You’ve shipped your products, paid your delivery partners, and you’re waiting for settlement. Then you receive a notification:…