PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Uber

Design driver heat map and discuss consensus

Last updated: Mar 29, 2026

Quick Overview

This question evaluates expertise in designing scalable, low-latency real-time systems—covering streaming ingestion via WebSocket, geospatial partitioning into deterministic cells, time-windowed density aggregation and top‑K querying—alongside conceptual knowledge of distributed consensus algorithms (Paxos vs Raft) within the System Design / Distributed Systems domain. It is commonly asked because it probes architectural trade-offs for high-throughput, low-latency geospatial streaming and fault-tolerant replication, combining practical application (component design, data partitioning, real-time aggregation and query serving) with conceptual understanding of consensus protocol differences.

  • hard
  • Uber
  • System Design
  • Software Engineer

Design driver heat map and discuss consensus

Company: Uber

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

##### Question Design a real-time Driver Heat Map system that streams live driver locations via WebSocket, partitions the map into cell IDs, and efficiently returns the top-K busiest cells. Explain the Paxos and Raft consensus algorithms and highlight their key differences.

Quick Answer: This question evaluates expertise in designing scalable, low-latency real-time systems—covering streaming ingestion via WebSocket, geospatial partitioning into deterministic cells, time-windowed density aggregation and top‑K querying—alongside conceptual knowledge of distributed consensus algorithms (Paxos vs Raft) within the System Design / Distributed Systems domain. It is commonly asked because it probes architectural trade-offs for high-throughput, low-latency geospatial streaming and fault-tolerant replication, combining practical application (component design, data partitioning, real-time aggregation and query serving) with conceptual understanding of consensus protocol differences.

Related Interview Questions

  • Design an Uber Eats Cart Service - Uber (medium)
  • Design A URL Shortener - Uber (medium)
  • Design Restaurant Search and Monitoring - Uber (hard)
  • Design Nearby Restaurant Search - Uber
  • Design a Food Delivery Cart - Uber (medium)
Uber logo
Uber
Aug 4, 2025, 10:55 AM
Software Engineer
Onsite
System Design
19
0

Real-Time Driver Heat Map with Top-K Busiest Cells, Plus Paxos vs. Raft

Context

You are designing a real-time heat map for a ride-hailing platform. Driver apps continuously send location updates. Rider apps (and internal tools) need to visualize where drivers cluster and fetch the top-K busiest cells within a map region/zoom, with low latency.

Requirements

  • Real-time ingestion and streaming via WebSocket.
  • Partition the map into deterministic cell IDs (e.g., S2/Geohash) that align with map zoom levels.
  • Track driver density per cell over a recent time window (e.g., last 1–5 minutes) and serve the top-K busiest cells for a requested viewport.
  • Reasonable scale assumptions (tune as needed):
    • 1–5 million active drivers globally.
    • Each driver sends a location every 2–5 seconds.
    • End-to-end latency: P95 <= 1–2 seconds from driver update to client-visible heat change.
  • High availability across regions; horizontal scalability.

Deliverables

  1. Design the system: ingestion, partitioning, storage, algorithms to maintain and query top-K per region/viewport, and how WebSocket streaming is used.
  2. Explain Paxos and Raft consensus algorithms and highlight key differences.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Uber•More Software Engineer•Uber Software Engineer•Uber System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.