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
February 21, 202515
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
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- 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 ProblemsSample Answer
Requirements
Functional Requirements
- 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 ...