Design a Real-Time Vehicle Telemetry Pipeline

Last updated: February 21, 2025

Quick Overview

Design a system to ingest, process, and analyze telemetry data from millions of connected vehicles reporting sensor data in real time.

Rivian
System Design
Software Engineer
Rivian
February 21, 2025
Software Engineer
Onsite - System Design
System Design
Hard

15

6

4,052 solved


Design a system to ingest, process, and analyze telemetry data from millions of connected vehicles reporting sensor data in real time.

Rivian vehicles generate massive amounts of telemetry data including battery state, motor temperatures, GPS, accelerometer readings, and more. This question tests your ability to design high-throughput data pipelines with the added constraint of intermittent vehicle connectivity.

What the Interviewer Expects
  • Design an ingestion layer that handles millions of concurrent vehicle connections
  • Implement store-and-forward on the vehicle for offline periods
  • Build real-time alerting for safety-critical signals like thermal runaway detection
  • Design efficient data storage with hot, warm, and cold tiers
  • Address data volume management through sampling, aggregation, and compression
Key Topics to Cover
Stream processing and event ingestion
Time-series data storage
Edge computing and store-and-forward
Real-time anomaly detection
Data compression and sampling strategies
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a burst of telemetry when thousands of vehicles reconnect simultaneously?
  • What signals would you monitor in real time versus batch process?
  • How would you detect anomalous battery behavior across the fleet?
  • How do you handle schema evolution as new sensor types are added?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional Requirements

  1. Data Ingestion: The system must ingest telemetry data from millions of connected vehicles in real-time, handling data such as battery state, motor temperatures, GPS ...
Capacity Estimation

Assuming each vehicle generates telemetry data every second:

  • Data Volume Calculation: Each vehicle sends 10 data points (e.g., battery state, GPS, temperatures) per second, with an average size ...

Submit Your Answer
Markdown supported

Related Questions