Design an Aircraft Speed Telemetry Analytics Platform
Ingest per-second aircraft speed readings and serve correct hourly minima and maxima over a billion-row history.
Problem statement
For this exercise, assume aircraft publish one speed reading per second with plane ID, event time, sensor sequence, speed, and a stable event ID. The platform retains at least one billion readings, validates and deduplicates them, and serves per-plane hourly minimum and maximum speed.
Event-time hours are UTC and half-open. Readings may arrive late for 24 hours or be corrected by a higher sensor revision; an hourly aggregate is provisional until that window closes and later corrections create a visible revised version.
Users query one plane or a fleet over time ranges and can drill from an aggregate to source evidence. Design ingestion, validation, partitioning, raw retention, incremental aggregation, late data and corrections, query serving, backfill, observability, and recovery.
Flight control, alerting, and sensor firmware are outside scope.
What to build
- Ingest, validate, and deduplicate ordered or late per-second readings from many aircraft.
- Retain raw readings with enough identity and revision lineage for audit and recomputation.
- Produce versioned hourly minimum and maximum speed per plane in event time.
- Query one plane or a fleet efficiently and expose aggregate freshness and provisional status.
- Backfill or correct a bounded range without double counting or blocking current ingestion.
At scale
- Assume one billion retained raw readings, 100,000 readings per second at peak, and short bursts at three times that rate.
- Ingestion acknowledgement should finish within 200 ms p95 and recent hourly queries within one second p95.
- Raw reading revisions and aggregate lineage are retained for ten years so every retained hourly result remains drillable and recomputable; late arrival is accepted for 24 hours.
- Duplicate delivery, consumer replay, backfill, or a partition failure cannot change a reading twice or publish an aggregate that mixes revisions silently.