Distributed Systems · MobiKwik
Refactoring the MobiKwik UPI Stack for 5× Lower Latency
A payments monolith at national scale, rebuilt in flight — without dropping a single settlement.
Executive read — 20 seconds
- Refactored the core UPI/Wallet monolith into performant service boundaries, cutting p99 latency by 5×.
- Unlocked $10M+ in revenue growth (~40% YoY) while reducing infrastructure cost by 15%.
- Passed RBI/NPCI audits and held PCI-DSS compliance throughout the migration.
What was the problem?
MobiKwik's core payments products — Wallet, UPI, bank integrations, tokenization — ran on a monolith whose latency and coupling capped merchant, lending and biller growth. Every peak event risked cascading failures across payment-dependent verticals, and regulatory audits (RBI/NPCI, PCI-DSS) demanded zero compromise on data integrity during any change.
What were the architecture moves?
Strangler-pattern decomposition
Carved the highest-traffic UPI flows out of the monolith behind stable API contracts, migrating traffic incrementally with shadow reads and dual writes so settlements never depended on a big-bang cutover.
Hot-path performance surgery
Profiled and rewrote the transaction hot path — connection pooling, Kafka-backed async side-effects, Cassandra for high-write ledger events, ElasticSearch for reconciliation queries — taking p99 latency down 5×.
Compliance as an architectural constraint
Treated RBI/NPCI audit requirements and PCI-DSS scope as first-class design inputs: tokenization boundaries, encrypted data zones, and audit-grade event trails baked into the new service topology.
Team scale with near-zero attrition
Doubled the team (100%+ expansion) under SMART OKRs and deliberate budgeting — the refactor was staffed by engineers who stayed.
Stack in play
Direct answers
By decomposing the payments monolith with a strangler pattern, rewriting the transaction hot path with Kafka-backed async processing and Cassandra for high-write ledger events, and migrating traffic incrementally with shadow reads — cutting p99 latency 5× while enabling $10M+ in revenue growth.
Stable API contracts first, then incremental traffic migration using shadow reads and dual writes, with compliance boundaries (PCI-DSS, RBI/NPCI) designed into the target topology from day one — never a big-bang cutover.
Facing a similar problem?
A 30-minute diagnostic sprint maps your bottleneck to a play like this one.