Razorpay Interview Questions 2026
18 real interview questions asked at Razorpay. Covers System Design, Domain, Behavioral, Product / User Stories, React / Next.js SSR, React / Architecture, Node.js / Queue, Node.js / Architecture, Security / Authentication, Java / Security, Node.js / Race Condition, Architecture / API Design, Kafka / Ordering, SQL / PostgreSQL. Reported by engineers who went through the Razorpay process.
System Design (3)
Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.
Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.
Design Razorpay's dashboard for merchants. A merchant wants to see real-time revenue, transaction success rates, and refund trends. How do you aggregate millions of transactions into live charts with under 5-second latency?
Domain (3)
Explain the difference between a payment gateway, payment processor, and acquiring bank. How does money actually move when a customer pays with a credit card on a Razorpay-powered checkout? Walk through each hop end to end.
Explain the UPI payment flow end-to-end: from user entering a VPA to money credited. What is NPCI's role? What happens when the beneficiary bank is down? How does Razorpay handle UPI collect vs UPI intent flows?
How do you implement a distributed ledger for financial transactions? Explain double-entry bookkeeping in code, why you never update a balance directly, and how you use event sourcing to reconstruct the current balance from a transaction log.
Behavioral (1)
Describe a production incident you were part of. Walk through the detection, triage, resolution, and post-mortem. What monitoring or process changes did you introduce afterwards?
Product / User Stories (1)
How do you write a good user story? Walk through an example for a payments feature.
React / Next.js SSR (1)
Your Next.js app fetches user-specific data in getServerSideProps. The page load time is 3.2 seconds. CDN cache hit rate is 0%. Product team asks you to make it faster without losing personalization. What do you do?
React / Architecture (1)
You're building a feature flag system in React. Flags come from an API and affect which components render. How do you implement this so: flags load once at startup, components don't re-render when irrelevant flags change, and engineers can easily wrap any component.
Node.js / Queue (1)
A Node.js microservice processes background jobs from a Redis queue. Under load, jobs fail and retry endlessly, creating a death loop that blocks the queue. How do you implement a proper retry strategy with dead letter handling?
Node.js / Architecture (1)
Design a rate limiter in Node.js that allows 100 requests per user per minute. It must work across multiple Node.js instances without a central Redis lock causing a bottleneck.
Security / Authentication (1)
Your JWT tokens are being stolen from localStorage and used in attacks. A developer suggests using httpOnly cookies instead. Describe the complete migration, including risks and security tradeoffs.
Java / Security (1)
Your REST API uses JWT. A user changes their password. How do you immediately invalidate their existing JWT tokens?
Node.js / Race Condition (1)
Your service processes payments. During load testing at 5x normal traffic, you notice 0.01% of transactions are charged twice. At scale that's 1000 users per day. How do you find and fix this?
Architecture / API Design (1)
What is idempotency? Why is it critical for payment APIs and how do you implement it?
Kafka / Ordering (1)
Kafka guarantees message order within a partition but not across partitions. For a payments system, why does this matter, and how would you key messages to preserve per-account ordering?
SQL / PostgreSQL (1)
In PostgreSQL, what is the difference between SERIALIZABLE and READ COMMITTED isolation levels for a transaction that reads then updates an account balance?
Practice these questions with AI feedback
Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.
Build my study plan →