Design Low-Latency Stock Information Queries
Serve current quotes and reference data with predictable low latency and transparent freshness.
Problem statement
For this exercise, assume you are designing low-latency stock information queries. Serve current quotes and reference data with predictable low latency and transparent freshness.
Define a coherent first production version that satisfies the listed requirements and scale while making failures and degraded behavior visible.
What to build
- Ingest quote updates and slower-changing reference data for each symbol.
- Serve a symbol snapshot containing latest trusted price, timestamp, and selected fundamentals.
- Expose stale, halted, or unavailable source status to callers.
At scale
- For this exercise, assume 250,000 symbols and 200,000 quote updates per second.
- Serve one million reads per second below 20 ms p99 from regional query endpoints.
- Recover query service after a regional loss without inventing newer market state.