Design a Double-Entry Ledger for Member Money Movement

Last updated: November 29, 2026

Quick Overview

Design the core ledger behind SoFi checking, savings and internal transfers: every movement is recorded as balanced debits and credits, balances are always correct and auditable, and the system handles tens of thousands of postings per second with strong consistency.

SoFi
System Design
Software Engineer
SoFi
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the core ledger behind SoFi checking, savings and internal transfers: every movement is recorded as balanced debits and credits, balances are always correct and auditable, and the system handles tens of thousands of postings per second with strong consistency.

As a chartered bank, SoFi must treat the ledger as the source of truth for member funds, so this is a natural senior system design topic. The interviewer looks for double-entry invariants, immutability, idempotency, how balances are derived and cached, and how you scale writes without giving up correctness.

What the Interviewer Expects
  • Models journal entries with lines that sum to zero, never mutable balances alone
  • Makes postings append-only and corrections reversing entries
  • Uses idempotency keys and a single transaction per journal entry
  • Explains how balances are maintained (materialized with versioning) and verified
  • Addresses hot accounts, partitioning, and reconciliation with external rails
Key Topics to Cover
double-entry accounting
strong consistency
idempotency
partitioning
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 do you handle a hot internal account, such as a settlement account touched by every transfer?
  • How do pending holds and available balance fit into the ledger?
  • How would you migrate balances from a legacy core with zero downtime?
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 transfers, card settlements, ACH and interest as journal entries; read current and available balance; produce a statement of postings. Non-functional: no lost or duplicated money, eve...

High-Level Design

Clients (transfer service, card processor, ACH gateway, interest job) call a Ledger API with an idempotency key. The ledger writes a journal_entry and its entry_lines (account, direction, amount) ...


Submit Your Answer
Markdown supported

Related Questions