Design a Cross-Border Payout Orchestrator Using a Bridge Asset

Last updated: November 29, 2026

Quick Overview

Design the backend that takes a bank's request to send USD to a recipient in Mexico, quotes a rate, buys a bridge asset (XRP or a stablecoin) on a source exchange, moves it on-ledger, sells it for MXN at a destination partner, and pays out locally, with every step auditable and recoverable.

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

0

0

0 solved


Design the backend that takes a bank's request to send USD to a recipient in Mexico, quotes a rate, buys a bridge asset (XRP or a stablecoin) on a source exchange, moves it on-ledger, sells it for MXN at a destination partner, and pays out locally, with every step auditable and recoverable.

This is the shape of Ripple Payments' liquidity product, where a payment spans several external partners and a public ledger and any leg can fail. The interviewer wants a durable state machine, honest treatment of FX and quote risk, idempotent partner integrations, and reconciliation as a first-class component.

What the Interviewer Expects
  • Model the payment as an explicit persisted state machine with compensating actions
  • Separate quoting from execution and bound quote validity
  • Make every partner call idempotent and every ledger submission traceable by hash
  • Treat on-ledger finality (validated ledger) as distinct from submission
  • Include reconciliation, monitoring, and a manual exception queue
Key Topics to Cover
Workflow Orchestration
State Machines
Idempotency
Reconciliation
FX Risk
Saga Pattern
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
  • The destination partner sells the bridge asset but the local payout rail is down for six hours; what happens?
  • How do you handle quote expiry if the source buy fills slowly?
  • How would you pre-fund corridors to avoid the round trip altogether, and what does that cost?
  • Where do sanctions screening and travel-rule data fit?
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: quote USD to MXN with fees and a firm rate valid for N seconds; accept a payment against a quote; execute buy, on-ledger transfer, sell, and local payout; expose status and webhooks; suppo...

High-Level Design
  • API and quote service: pulls live prices from source and destination partners, adds spread and fees, stores a quote with expiry and the liquidity it assumes.
  • Orchestrator: a durable workfl...

Submit Your Answer
Markdown supported

Related Questions