InterviewLegend

Design a Reliable Payment System

Frequently asked
Alex Chen45 min readAdded 183 real interview reports

A payment system takes an instruction like "send $500 from my checking account to my landlord" and turns it into money that moves, exactly once. The happy path is short. Most of the work is in what happens when a phone retries a request that already went through, a server dies between two writes, or the connection to the payment rail drops right after the transfer went out. ACH and wires are the two rails most US bank transfers ride on. ACH (the Automated Clearing House) moves payments in batched files and settles the same day or the next. A wire goes one message at a time and is final within minutes. So a wire sent twice is very hard to get back, and that one fact shapes a lot of what follows.

The JPMorgan angle
At JPMorgan this prompt shows up in the experienced-hire design round, about 45 minutes on a HackerRank whiteboard, mostly at SDE-3. Versions range from end-to-end processing to one transfer surviving retries and a rail timeout to a balance service. A weak design round can get you downleveled, so treat this one as setting your level.

JPMorganPremium lesson · System design round

The JPMorgan design, worked end to end.

  1. The API and data modelSystem design · Frequently asked
  2. The design, drawn out3 diagrams
  3. 5 deep divesWith the tradeoffs
Get the JPMorgan questions

$49 a year · all 107 companies · instant access

183 JPMorgan interview reports · guide updated

JPMorgan interview guide

Know what JPMorgan asks before you walk in.

13 coding · 6 system design · 18 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your JPMorgan interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.