This question evaluates skills in system design for real-time, multi-source market data ingestion and live streaming, covering competencies such as schema normalization, deduplication and idempotency, time-ordering, API and client update models, partitioning and scaling, fault tolerance and backfill, observability, security, and cost management.

You are asked to design a production system that continuously ingests stock market data from multiple exchanges and renders an always up-to-date web page for users. Data includes trades and quotes (top-of-book), and the system must support historical queries and real-time streaming updates.
Assume: multiple heterogeneous data sources (direct exchange feeds and/or vendor APIs), variable market hours, exchange-specific schemas, intermittent network failures, and strict rate limits.
Design the system and cover the following areas:
State assumptions where needed and justify design choices.
Login required