CrackOps
Interview PrepTracksLinuxAWS LabSoonInterview RoomSoon
Sign inStart free
CrackOps

Interview prep for the people who keep production up.

[email protected]
ProductInterview PrepTracksDashboardInterview Room
RolesDevOpsSREPlatformCloud
CompanyAboutContactPrivacyTerms
© CrackOps
Tracks/Infrastructure System Design
Expert 4 minSystem design

Leadership wants active-active across two regions for payments. How do you keep transaction state strictly consistent?

Scenario

An Indian UPI payments app runs its transaction platform in a single cloud region (Mumbai) with a warm standby in Hyderabad; payment data must stay in India. A three-hour regional networking event last quarter stopped all payments for 47 minutes while the team failed over by hand, and two thousand transactions needed manual reconciliation afterwards. Peak load is 30,000 payments per second, and the two Indian regions are roughly 15 to 20 ms apart in round-trip time.

The interviewer asks

“The CTO wants 'active-active, zero downtime, zero data loss' for the payment platform. Tell me what you'd actually build, why true multi-writer active-active is hard for money, and which option you'd recommend.”

The 30-second answer

True multi-writer active-active for money means two places can decide the fate of the same transaction at once, and during a partition you must choose between refusing writes and accepting conflicting ones — for payments that's not a choice, you refuse. So I'd make the system active-active at the user level, not the row level: users are sharded into cells, each cell has exactly one writer region at a time, synchronous replication inside the region across AZs, and a small quorum-replicated intent journal across three sites so no submitted transaction ID is ever lost. Failover moves cell ownership with fencing tokens, so a stale owner physically cannot submit payments. Both regions serve live traffic, the blast radius of a failure is one cell, and only the state that must be strictly consistent pays the consensus latency.

Sign in to finish this question

A free account unlocks the rest of it, and saves your progress across every track.

  • The voiced mock interview (4 min)
  • The full senior answer, step by step
  • Animated architecture diagrams
  • The whole conversation, 14 turns
  • Deep dive: how it works, mistakes, risks and trade-offs
  • 3 copy-ready command snippets
  • 5 follow-up questions they'll ask next
  • A self-check of 8 things interviewers listen for
Create a free accountSign in

More Infrastructure System Design interview questions

  • How would you keep a trading platform up all through market hours and prove every change to an auditor?
  • Design disaster recovery for a trading platform with an RTO under 15 minutes and an RPO near zero.
  • You have two weeks to ship multi-region failover for live matches, and DNS failover is off the table. What do you build?
  • Design a UPI payments platform that rides a 10x festival peak without losing or double-charging a payment
  • Design reconciliation so money is never lost or duplicated, even when services crash mid-payment
  • Design the home-feed serving path for hundreds of millions of members, fast and degrading gracefully
All Infrastructure System Design questions