KatInterview

Build a Global Remittance Platform: FX, Compliance, Payouts

System DesignModel answer
MediumModel answerSystem Designsystem-designpaymentsidempotency

Last updated

Design a service that lets users send money abroad with live FX quotes, fees, limits, multiple funding and payout options, status tracking, refunds and notifications.

Problem

You are asked to design a platform that lets people in one country send money to recipients in another country, in the style of a consumer remittance app.

Required capabilities

  • Provide near-real-time exchange-rate quotes and compute the fee and the amount the recipient will receive.
  • Enforce country-specific transfer restrictions and per-user limits.
  • Accept funding from bank accounts, cards, or an in-app wallet balance.
  • Deliver payouts to local bank accounts, mobile wallets, or cash pickup partners.
  • Let users track the status of each transfer.
  • Handle failures, cancellations and refunds correctly.
  • Notify users when important state changes occur.

What to cover

Walk through the following areas and justify your choices:

  1. Requirements and a rough capacity estimate
  2. Public and internal APIs
  3. Core services and how they interact
  4. Data model, including how money is recorded
  5. The end-to-end transfer workflow and its states
  6. Exchange-rate sourcing and quote handling
  7. Compliance and limit checks
  8. Consistency and idempotency guarantees
  9. Scalability and reliability
  10. Observability and reconciliation

State any assumptions you make, such as traffic volumes and the length of time a quote stays valid.

Hints

Hint 1

Treat this as a money-movement problem rather than a CRUD one: begin with an append-only double-entry ledger and an explicit transfer state machine, then think about scale.

Hint 2

Every external call (card processor, bank, payout partner) can time out or answer late. Ask what makes each step safe to retry, and how a duplicate request or duplicate worker is prevented from moving money twice.

Hint 3

Lock the exchange rate into a stored quote with an expiry, and decide who bears FX risk after that. Also decide what happens to the rate, fee and limits when a transfer fails and must be refunded.

Hint 4

Compliance is part of the workflow, not a pre-check: consider where sanctions screening, KYC-tiered limits and manual review fit among the states.