HLDArena
HLD-418·Payments & Ledger
Expert · 2,000 pts

24/7 Real-Time Gross Settlement & Instant Interbank Payment Switch

Design a UPI / FedNow / Pix-scale national instant payment switch settling account-to-account transfers across hundreds of member banks in < 100 ms with ISO-20022 idempotency, central-bank liquidity reserve locking, and zero split-brain money creation.

Max p99
≤ 72 ms
Availability
≥ 99.7%
Budget
≤ $12,950

Functional Requirements

  • FR-1POST /v1/switch/transfers — Validates VPA/alias routing, atomically debits sender bank settlement reserve & credits receiver bank reserve.
  • FR-2GET /v1/switch/transfers/{uetr_id} — Returns authoritative settlement finality receipt and cryptographic clearing proof.
  • FR-3POST /v1/switch/transfers/{uetr_id}/timeout-resolve — Executes deterministic deemed-approved / auto-reversal protocol when a member bank times out.
  • FR-4Absolute RPO = 0 & zero overdraft/double-settlement across 245k peak RPS and primary settlement shard crashes.

Workload Profile

National Daytime Payments76,000 Alias & Status Read RPS / 18,000 Interbank Settlement Write RPS
Festival / Payday Peak198,000 Read RPS / 46,000 Settlement Write RPS
Active Working Set54 GB VPA alias directory, member-bank liquidity accounts & UETR dedup ring
Central-Bank GateStrict serializable reserve conservation + hot-bank striped sub-accounts

Consistency Model

Strict serializable atomic debit/credit across member-bank settlement reserve sub-ledgers with synchronous quorum WAL (RPO = 0).

Relevant practice for

Click an item in Inventory above, or press B to add a component, double-click to name, C to connect.

Design Write-up

Write under ### Architecture for Diagram to take that up directly

Compulsory section · if not written yet, Diagram reads from the start of your write-up.
Architecture: required·FRs mentioned: 0/4·0 boxes · 0 edges
0 words
Hidden Cases #4–#7 run automatically on Submit
Case 1: Smoke & API ContractInput Workload
Read RPS
2,000 rps
Write RPS
400 rps
Key Distribution
Uniform (Low Skew)
Chaos Fault
None (Healthy Cluster)
Expected Pass CriteriaASSERTIONS
• Tail Latency: p99 ≤ 144 ms
• Availability: ≥ 99.7%
Valid end-to-end Client → Compute → Storage topology