Design real-time stock price viewer
CoinbaseSoftware Engineer · OnsiteLast updated
This question evaluates system-design competency in building low-latency, high-throughput real-time streaming systems, covering ingestion, normalization, deduplication, aggregation, pub/sub dissemination, and operational resilience.
Design a system to let clients view real-time stock prices only (no historical queries). Describe ingestion from market data feeds, symbol normalization, deduplication, and aggregation; how you would disseminate updates to clients (e.g., pub/sub, WebSockets vs. long polling); API design and throttling; caching and fan-out; latency and consistency goals; backpressure and delivery semantics; horizontal scaling to millions of concurrent users; fault tolerance, failover, and multi-region deployment; and monitoring, alerting, and testing strategies.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.