500,000 Location Updates/sec
Sustained peak request volume during high-traffic events.
Design an Uber / Lyft dispatch platform with spatial indexing, dynamic surge pricing, and ETA routing.
Target production parameters expected in a senior or staff interview round.
Sustained peak request volume during high-traffic events.
Daily active users generating read and write operations.
Projected data ingestion and replication storage capacity.
Strict end-to-end percentile latency SLA constraint.
Establish clear problem boundaries before proposing architectural components.
Step-by-step arithmetic conversions for QPS, storage, and bandwidth.
| Dimension | Calculation Formula | Estimated Result |
|---|---|---|
| GPS Ingestion Rate | 1.5M active drivers × 1 update/3s = 500,000 QPS | ~500,000 Ingestion QPS |
| Memory Footprint | 1.5M drivers × 64 bytes (DriverID, Lat, Lon, Status, Timestamp) | ~96 MB in-memory spatial index |
How requests navigate ingress gateways, application logic, caching, and persistence.
Ingests driver GPS pings and batch-updates geospatial grid index.
Indexes drivers into hexagonal spatial cells (Resolution 8 ~400m radius) for rapid neighbor lookups.
Queries neighboring H3 cells, calculates road-network ETAs, and offers ride to top candidate.
Entity models, indexing, and primary key partitioning.
Indexed on pickup_h3_index and driver_id.
How to defend engineering compromises when challenged by interviewers.
Rationale: H3 hexagons provide invariant neighbor distances, simplifying radius search algorithms.
Key interview questions and conceptual defenses.
All 6 adjacent neighboring cells share identical distances from the center, eliminating rectangular corner distortions during distance estimation.