Design a 24/7 Cross-Border USD Clearing and Tokenized Deposit Service
Last updated: November 29, 2026
Quick Overview
Design a service that lets institutional clients move USD between accounts at the bank and to other banks at any hour, including weekends and holidays, with exactly-once ledger posting, real-time balance checks, and sanctions screening.
Citi
November 29, 20260
0
0 solved
Design a service that lets institutional clients move USD between accounts at the bank and to other banks at any hour, including weekends and holidays, with exactly-once ledger posting, real-time balance checks, and sanctions screening.
This mirrors Citi's 24/7 USD Clearing and Citi Token Services, which use tokenized deposits on a permissioned ledger so banks and corporates can move liquidity outside traditional cut-off times. The interviewer probes idempotency, double-entry correctness, how the bank stays available while batch-era systems still have maintenance windows, and how compliance checks fit in the latency budget.
What the Interviewer Expects
- Clarify internal book transfers versus external clearing legs
- Double-entry ledger with idempotency keys and a state machine per payment
- Synchronous balance reservation plus asynchronous downstream posting
- Sanctions screening inline with a defined hold path
- Reconciliation between the token ledger and the core deposit ledger
- Availability through maintenance windows and region failures
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you settle with an external bank when its own system is closed?
- How do you guarantee the token ledger and the core ledger never disagree for long?
- What happens when sanctions screening times out?
- How do you give clients real-time balances without hammering the core ledger?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: submit a payment (book transfer or outbound), see status, see real-time balance, receive inbound. Non-functional: 24x7x365 availability (target 99.99%), p99 under 5 seconds end to end for ...
High-Level Design
API gateway (mTLS, client certs) -> Payment Orchestrator -> components:
- Idempotency store: client
(client_id, request_id)mapped to payment ID; a retry returns the original result. - **Screeni...