Design the Apple Cash Peer-to-Peer Payment Ledger

Last updated: November 29, 2026

Quick Overview

Design the ledger behind sending money between users in Messages and Wallet, guaranteeing balances never go negative, transfers are exactly-once, and every cent is auditable.

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

0

0

0 solved


Design the ledger behind sending money between users in Messages and Wallet, guaranteeing balances never go negative, transfers are exactly-once, and every cent is auditable.

Apple Cash moves real money, so correctness and auditability dominate over raw throughput. The interviewer checks double-entry bookkeeping, idempotency, consistency across services such as card funding and fraud checks, and reconciliation with partner banks.

What the Interviewer Expects
  • Uses an append-only double-entry ledger where every transfer is balanced debits and credits
  • Makes transfers idempotent with client-supplied keys
  • Enforces non-negative balances atomically, with clear handling of pending holds
  • Coordinates external funding (debit card, bank) with sagas rather than distributed transactions
  • Plans daily reconciliation and immutable audit trails
Key Topics to Cover
double-entry ledger
idempotency
sagas
consistency
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 support a recipient who has not yet set up Apple Cash?
  • How do you handle a debit card funding charge that succeeds after your timeout?
  • How would you shard the ledger when one account (a large merchant or a promo pool) is extremely hot?
  • What do you show in the UI while a transfer is pending fraud review?
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: send and request money, fund from a debit card or Apple Cash balance, transfer to bank, history. Non-functional: no lost or duplicated money; strong consistency on balances; full audit; a ...

High-Level Design
  • Transfer API: accepts (idempotency_key, from, to, amount, funding_source).
  • Risk service: synchronous fraud score; may hold for review.
  • Ledger service: a relational database with ta...

Submit Your Answer
Markdown supported