Design real-time driver heatmap system
UberSoftware Engineer · OnsiteLast updated
This question evaluates a candidate's ability to design real-time distributed systems for geospatial aggregation, covering skills in spatial partitioning, high-throughput streaming ingestion, low-latency cell counting, WebSocket-based client updates, and top-K ranking within a fault-tolerant multi-region architecture.
Design a real-time driver heatmap for a ride-hailing platform. Partition the city into grid cells (e.g., geohash), ingest driver pings, and stream updates to clients over WebSockets. Compute and publish the top-K hottest cells per region with low latency. Detail the data model, aggregation strategy (edge vs. server), update frequency, scalability, fault tolerance, and how clients subscribe/unsubscribe.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.