Design Telemetry Ingestion for Millions of Vehicle Gateways

Last updated: November 29, 2026

Quick Overview

Design the backend that ingests GPS, engine diagnostics and sensor readings from millions of cellular-connected gateways, stores them for real-time dashboards and historical queries, and tolerates devices that go offline and upload hours of buffered data at once.

Samsara
System Design
Software Engineer
Samsara
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the backend that ingests GPS, engine diagnostics and sensor readings from millions of cellular-connected gateways, stores them for real-time dashboards and historical queries, and tolerates devices that go offline and upload hours of buffered data at once.

Samsara processes trillions of data points a year from its devices, so ingestion is the heart of the platform and a frequent system design topic for backend roles. The interviewer looks for capacity math, a durable log in the middle, idempotency, and storage tiering for time series.

What the Interviewer Expects
  • Estimate write throughput and storage from device count and sample rates
  • Use a durable partitioned log between device gateways and consumers
  • Make uploads idempotent with per-device sequence numbers
  • Separate hot latest-state serving from historical time-series storage
  • Handle late data and backfill without breaking real-time views
  • Discuss multi-tenancy and noisy-neighbor isolation
Key Topics to Cover
Stream ingestion
Time-series storage
Idempotency
Partitioning
Backpressure
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 partition so one customer with 50,000 trucks does not create a hot shard?
  • How would you roll out a protobuf schema change across firmware versions?
  • What is your retention and downsampling policy, and why?
  • How do you detect that a device has silently stopped reporting?
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: accept batched readings from devices, show latest location within seconds, support trip history and reports over months, feed alerting. Non-functional: 3M devices, average 1 batch every 5 ...

High-Level Design

Device -> regional edge (TLS, mutual auth with device certs) -> ingest service validates the protobuf batch, writes it to a partitioned log (Kinesis or Kafka) keyed by device id, then acks. Consumers:...


Submit Your Answer
Markdown supported

Related Questions