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

Design disaster recovery for a trading platform with an RTO under 15 minutes and an RPO near zero.

Scenario

A broker's order management, risk and post-trade ledger run in a primary data centre, with a second site 60 km away and a cloud region 1,400 km away. The ledger is PostgreSQL at about 4 TB with 6,000 writes per second at peak; the order core uses an in-memory replicated journal. Last year's DR test took 3 hours 40 minutes and lost 11 minutes of trades that had to be rebuilt from exchange files.

The interviewer asks

“The regulator expects us to recover from the loss of our primary data centre in under 15 minutes with effectively no data loss. Design the DR setup, walk me through the recovery minute by minute, and tell me honestly what 'near zero' means.”

The 30-second answer

I'd make RPO zero true only where physics allows it: synchronous quorum commit from the primary to the metro site 60 km away, which costs about 0.6 ms per commit, and asynchronous replication to the far cloud region for a regional disaster, where RPO is honestly a second or less and is closed by reconciling with exchange drop copies. Failover is fenced and quorum-based with Patroni and a three-site etcd, the metro site is a hot standby with the application already running, and a person declares site failover within five minutes against fixed criteria. The runbook is timed to the minute, rehearsed quarterly, and once a year we run a full trading day from the DR site. Point-in-time recovery covers the case replication can't: logical corruption.

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, 12 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?
  • 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
  • Leadership wants active-active across two regions for payments. How do you keep transaction state strictly consistent?
  • 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