Code RoomFleet location ingestion
HardPrep Room Coding #3516

Fleet location ingestion

System designDistributed systemsSenior–Staff~50 min

Design the real-time location ingestion backbone for a fleet platform tracking 5 million connected vehicles, each emitting a GPS+telemetry packet every 1 second (so ~5M writes/sec sustained). You must support (a) a live map showing any vehicle's current position with <2s staleness, (b) replaying a vehicle's exact route over the last 90 days, and (c) fleet-wide queries like 'all trucks currently inside this depot polygon'. Discuss the ingestion path, the storage split, partitioning to avoid hotspots, and the durability vs cost trade-off for 90 days of per-second history.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.