Design a Live Fleet Map With Sub-Second Vehicle Updates

Last updated: November 29, 2026

Quick Overview

Design the service behind a fleet manager's live map that shows the current position, heading and status of every vehicle in a fleet, updates within a couple of seconds, and supports filtering and zooming for fleets from 5 to 50,000 vehicles.

Motive
System Design
Software Engineer
Motive
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the service behind a fleet manager's live map that shows the current position, heading and status of every vehicle in a fleet, updates within a couple of seconds, and supports filtering and zooming for fleets from 5 to 50,000 vehicles.

The live map is the first screen many Motive fleet managers and dispatchers open, so it has to feel real-time even for very large enterprise fleets. Interviewers look for a clean split between ingestion and fan-out, a latest-state cache, and a strategy for not drowning the browser at large fleet sizes.

What the Interviewer Expects
  • Separate latest-state storage from historical tracks
  • Push updates over WebSocket or SSE with per-fleet subscriptions
  • Use viewport-based subscriptions and clustering for very large fleets
  • Handle reconnects with a snapshot plus incremental deltas
  • Enforce tenant isolation on every subscription
Key Topics to Cover
WebSockets
pub/sub
latest-state cache
geospatial indexing
multi-tenancy
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 would you show a smooth animated path between sparse pings?
  • How would you support a shared public link that shows one truck's ETA to a customer?
  • What changes if 10,000 dispatchers open the map at 7 a.m. at once?
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

Show each vehicle's last position, heading, speed, and status (driving, idle, offline) with under 2 seconds of lag; filter by group, tag, or driver; support fleets up to 50,000 vehicles and thousands ...

High-Level Design

The ingestion pipeline already writes each point to a stream. A location consumer updates a latest-state cache (Redis hash per vehicle, plus a geospatial set per fleet) and publishes a compact delta t...


Submit Your Answer
Markdown supported

Related Questions