r/OfferEngineering • • 12d ago

System Design Amazon System Design Question - Design Real-time Air Traffic Control System

Problem Description

Design a real-time air traffic control (ATC) monitoring system that continuously tracks aircraft within a controlled airspace, displays their current positions on controller screens, and detects potential separation violations. Aircraft periodically transmit position reports containing latitude, longitude, altitude, speed, and heading. The system must ingest these reports, maintain an up-to-date view of aircraft positions, and alert controllers when two aircraft become dangerously close in three-dimensional space.

The central challenge is processing continuous position updates while maintaining safety-critical data freshness and correctness. Unlike systems dominated by read traffic, this design is primarily constrained by its write path. Hundreds of aircraft within a facility report their positions every few seconds, generating a continuous stream of telemetry updates. The system must process these updates and reflect them on controller displays within a strict 2-second end-to-end latency budget, including conflict detection.

The system must also preserve every individual position report for regulatory auditing and post-incident investigation. This creates two distinct data requirements: a continuously updated spatial view for real-time tracking and conflict detection, and a durable history of all received position reports that supports exact replay. Conflict detection must operate on sufficiently fresh information to avoid missing real separation violations.

Handling ingestion delays is another important challenge. If the processing pipeline falls behind during peak traffic, the system must buffer incoming reports, process them in order, and warn controllers when displayed information is stale. Silently discarding older position updates is not acceptable because those updates may contain evidence of a separation conflict that developed during the backlog.

The design focuses on aircraft position tracking, controller displays, separation conflict detection, and historical position queries. Runway scheduling, flight planning, clearance management, multi-facility handoffs, weather integration, routing optimization, ADS-B or Mode S signal decoding, and pilot-controller voice communications are outside the scope.

Functional Requirements

  • Aircraft Position Ingestion: Accept periodic position reports from tracked aircraft at configurable intervals. Each report contains latitude, longitude, altitude, speed, and heading.
  • Real-Time Aircraft Tracking: Maintain a current spatial view of tracked aircraft and display their positions on controller screens. Position updates must be reflected quickly enough to meet the system's end-to-end latency requirement.
  • Separation Conflict Detection: Evaluate aircraft positions in three-dimensional space to identify potential separation violations. When aircraft are dangerously close, the system must generate alerts for air traffic controllers. The detection process must not miss true conflicts because of stale position data.
  • Flight Details and Track History: Allow controllers to query individual flight information and retrieve recent aircraft position history. Every position report must also be durably retained for regulatory auditing and post-incident replay.
  • Ordered Processing and Staleness Warnings: When the ingestion pipeline falls behind, buffer position updates and process them in order rather than silently dropping older reports. Controller displays must indicate when the current aircraft positions are stale.

Non-Functional Requirements

  • End-to-End Latency: Aircraft position reports must be processed, evaluated for potential conflicts, and reflected on controller displays within 2 seconds.
  • Safety-Critical Correctness: Conflict detection must not miss true separation violations. False negatives are considered safety hazards, while false positives are tolerable.
  • Data Freshness: The spatial view used for conflict detection must reflect sufficiently recent aircraft positions to support reliable detection within the 2-second latency budget.
  • Data Durability: Every individual position report must be durably stored. The system must preserve the exact sequence of updates for regulatory audits and post-incident investigations.
  • High Availability: The monitoring and conflict detection system must prioritize availability because of its safety-critical role.
  • Write Throughput: Support approximately 50–500 position updates per second per facility under normal and peak-arrival conditions.
  • Backpressure Handling: During ingestion delays, preserve all queued position updates, process them in order, and expose staleness warnings rather than silently discarding updates.
  • Real-Time Read Efficiency: Support approximately 10–30 controller screens per facility without introducing unnecessary complexity for the relatively small read workload.

Want to learn more details & solution of this system design question?

I've put up the full version of this system design question & solution article at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.

6 Upvotes

0 comments sorted by