Design an FX Rate Quote and Rate Lock Service
Last updated: November 29, 2026
Quick Overview
Design the service that shows customers a guaranteed exchange rate for each corridor, locks that rate for a limited time while they complete the transfer, and protects the business from market moves during the lock.
Remitly
November 29, 20260
0
0 solved
Design the service that shows customers a guaranteed exchange rate for each corridor, locks that rate for a limited time while they complete the transfer, and protects the business from market moves during the lock.
Remitly shows a rate up front and honors it when the customer sends, so quoting sits on the hot path of every transfer flow. The interviewer checks that you separate market data ingestion from customer pricing, make locks verifiable and tamper-proof, and reason about treasury exposure.
What the Interviewer Expects
- Separates market rate ingestion, pricing (margin and promos) and quote issuance
- Issues quotes with ids, expiry and signed or stored terms
- Validates the quote server-side at send time
- Handles stale market data with a safe fallback
- Discusses exposure from outstanding locks and hedging hooks
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 long should a lock last and how would you choose it per corridor?
- The market moves 3% in a minute. What does the system do with outstanding locks?
- How do you serve quotes at low latency in multiple regions while keeping one source of truth?
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
Show a rate within about 100 ms on the send screen; lock it for a window such as 30 minutes for card-funded transfers; honor exactly the locked rate and fee at send; support promotional rates for new ...
High-Level Design
Market Data Ingestor pulls mid-market rates from several liquidity providers and publishes a validated rate per pair every few seconds. Pricing Engine applies corridor margin, speed tier, customer seg...