Design a Double-Entry Ledger for Instant Real-Time Payments

Last updated: November 29, 2026

Quick Overview

Design the core ledger behind instant account-to-account payments for a large bank, ensuring every payment posts exactly once as balanced debits and credits, balances never go negative without approval, and the ledger reconciles with the payment network.

J.P. Morgan
System Design
Software Engineer
J.P. Morgan
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the core ledger behind instant account-to-account payments for a large bank, ensuring every payment posts exactly once as balanced debits and credits, balances never go negative without approval, and the ledger reconciles with the payment network.

J.P. Morgan moves trillions of dollars a day through its payments platforms and supports instant rails such as The Clearing House RTP network and FedNow, so a ledger design is a demanding senior system design question. The interviewer is looking for double-entry correctness, idempotency, strong consistency on balances, a clear story for hot accounts, and reconciliation with an external network.

What the Interviewer Expects
  • Model the ledger as immutable balanced journal entries
  • Make every payment idempotent with a client or network message id
  • Enforce funds checks with strong consistency per account
  • Handle hot accounts such as large corporate or settlement accounts
  • Design reconciliation against network confirmations and end-of-day
  • Explain how reversals and returns are posted
Key Topics to Cover
double-entry accounting
idempotency
strong consistency
sagas
reconciliation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you shard the ledger, and how do cross-shard payments stay atomic?
  • What happens if the network accepts a payment but your ledger write times out?
  • How do you produce an account statement quickly from an append-only ledger?
  • How would you prove to an auditor that the ledger has not been altered?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: post a payment as a debit to the payer and a credit to the payee (or to a network settlement account for outbound), check available balance including holds, support returns, and expose bal...

High-Level Design

A payment API receives instructions with an idempotency key. A payment orchestrator records the payment in a state machine (received, funds held, sent to network, settled, or failed) and calls the led...


Submit Your Answer
Markdown supported