Design a Stock Data Analytics Platform
Ingest market data, compute reusable aggregates, and serve interactive historical analytics.
Problem statement
For this exercise, assume you are designing a stock data analytics platform. Ingest market data, compute reusable aggregates, and serve interactive historical analytics. Define a coherent first production version that satisfies the listed requirements and scale while making failures and degraded behavior visible.
What to build
- Ingest trades, quotes, and reference-data updates with provenance and corrections.
- Compute reusable time-bucket and symbol aggregates for analytics.
- Serve filtered historical queries and dashboards with freshness and partial-result metadata.
At scale
- For this exercise, assume one million events per second and five years of retained history.
- Interactive common queries target two seconds p95; large exports may run asynchronously.
- Corrections must be replayable without silently changing published snapshots.