Design a Market Quote Cache for the SoFi Invest App
Last updated: November 29, 2026
Quick Overview
Design the service that delivers near-real-time stock and ETF quotes to millions of SoFi Invest app sessions, including watchlists and portfolio screens, without overwhelming the upstream market data feed or showing members misleading stale prices.
SoFi
November 29, 20260
0
0 solved
Design the service that delivers near-real-time stock and ETF quotes to millions of SoFi Invest app sessions, including watchlists and portfolio screens, without overwhelming the upstream market data feed or showing members misleading stale prices.
SoFi Invest members watch prices on portfolio and watchlist screens, and market open creates huge synchronized load. The interviewer checks caching and fan-out design, freshness guarantees, licensing awareness for market data, and how the app behaves when data is stale.
What the Interviewer Expects
- Ingests the upstream feed once and fans out internally instead of per-user upstream calls
- Separates the latest-quote cache from streaming push to active sessions
- Defines freshness rules and marks stale quotes in the UI
- Uses subscription-based fan-out keyed by symbol
- Plans for market open spikes, reconnect storms and feed outages
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 would you handle a symbol halted mid-day?
- How do you keep portfolio value consistent with the quotes shown on the same screen?
- What changes for after-hours or crypto quotes that trade 24/7?
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: latest quote per symbol (bid, ask, last, change), streaming updates for symbols on screen, snapshot API for portfolio valuation. Non-functional: about 3 million peak concurrent sessions at...
High-Level Design
A Feed Handler consumes the vendor feed (one connection per region), normalizes ticks and publishes to an internal stream partitioned by symbol. A Quote Cache service keeps the latest quote per symbol...