Skip to main content
Advancedhow it works Verified ~15 min

Design a real-time pipeline for vehicle telemetry using Kafka and Spark Structured Streaming. How do you size it?

Source: Google SRE book: data processing pipelines

Quick answerFree

Vehicles publish to Kafka keyed by vehicle id so each vehicle stays ordered. 1.5 TB a day is about 17 MB/s on average (5 TB a day would be about 58 MB/s), so plan for peaks. Spark validates, quarantines bad events, dedupes on event id within a watermark, and writes idempotent sinks with checkpoints.

Detailed answer· ~420 words

Pro

Unlock the full answer with Pro

Get a ~420-word model answer, 6 key points, a visual explainer, 5 common mistakes and 5 follow-ups, plus 152 more System Design questions.

Key points· 6 points

Pro
Unlock with Pro

Visual explainer· animated, step by step

Pro
Unlock with Pro

Common mistakes· 5

Pro
Locked

Best practices· 4

Pro
Locked

Likely follow-ups· 5 questions

Pro
Unlock with Pro

+ 152 more System Design questions in Pro, each with the full answer.

Discussion