KatInterview

Design a Data Ingestion System for Autonomous Vehicle Mapping Fleets

System DesignModel answer
MediumModel answerSystem Designsystem-designdistributed-systemsetl

Last updated

Design an end-to-end telemetry and sensor data collection system for a mapping fleet, handling route planning, physical/wireless offloading, data quality checks, and privacy sanitization.

Design an end-to-end system that manages a fleet of specialized mapping vehicles deployed to collect high-definition sensor data (Cameras, LiDAR, RADAR, GPS/IMU) for autonomous vehicle maps.

Core Objectives

  1. Mission Generation & Target Allocation: Systematically identify missing, out-of-date, or changed road segments and generate optimal collection routes for fleet drivers.
  2. On-Vehicle Offloading & Ingestion: Safely transfer multi-terabyte raw sensor logs from vehicles back to cloud processing storage.
  3. Quality & Validation Gating: Verify sensor integrity, calibration consistency, dynamic environmental conditions, and geospatial accuracy before ingesting.
  4. Privacy & Anonymization: Enforce PII masking (faces, license plates) and regulatory compliance before downstream consumers access raw records.
  5. Storage & Downstream Handoff: Provide an organized spatial-temporal data platform for HD map generation engines.

Assume you are presenting this architecture to an interviewer. Start by stating reasonable scope boundaries, sizing the data scale through back-of-the-envelope calculations, and presenting a modular architecture.

Hints

Hint 1

Calculate the total daily volume per vehicle (e.g., LiDAR + 4K Cameras + GNSS/IMU) to determine whether cellular or physical depot offloading is required.

Hint 2

Think about how roads are represented spatially (e.g., S2 or H3 spatial indexes) to track coverage and staleness efficiently.

Hint 3

Structure your ingestion pipeline around staging buckets, asynchronous validator services, and privacy-preserving transformation jobs.