Real-Time Ride-Hailing Architecture: Executive Summary

Real-Time Ride-Hailing Architecture: Executive Summary Executive Summary & Quick Answer: Real-time ride-hailing platforms combine HTTP/3 gRPC stream ingestion for driver GPS telemetry, Uber H3 hexagonal spatial indexing in Redis RAM, Apache Kafka/Redpanda event streaming, and DISCO global assignment matching engines to dispatch rides in under 2 seconds. Key Takeaways: Telemetry Scale: Ingest driver GPS coordinates every 4 seconds using Extended Kalman Filters and binary gRPC Protobuf streams over HTTP/3 QUIC. Spatial Pre-filtering: Index driver positions using Uber H3 Resolution 8 cells (~0.74 km²), isolating nearest candidates in <10ms. Global Matching Optimization: DISCO batched matching aggregates ride requests every 2-5 seconds, solving bipartite graph assignment problems for minimal ETA. What You’ll Learn That AI Won’t Tell You: ...

May 6, 2026 · 9 min · Lê Tuấn Anh

Ride-Hailing GPS Location Ingestion Pipeline in Go

Ride-Hailing GPS Location Ingestion Pipeline in Go Prerequisite: Before reading this part, review the Executive Summary. GPS Ingestion at Scale: gRPC Streaming, MQTT & Kalman Filter Executive Summary & Quick Answer: High-throughput location ingestion processes over 1 million GPS updates per second by using binary gRPC streams or MQTT over persistent TCP/QUIC connections. Devices run Kalman filters and dead-reckoning interpolation to clean telemetry noise before publishing updates to Apache Kafka and Redis. ...

May 6, 2026 · 10 min · Lê Tuấn Anh

Uber H3 Geospatial Indexing: Redis Driver Discovery

Uber H3 Geospatial Indexing: Redis Driver Discovery Executive Summary & Quick Answer: Uber and Grab find the nearest available driver in under 100ms by dividing the Earth’s surface into hexagonal cells (H3 index at Resolution 8, each ~0.74 km²). Instead of calculating distance to every driver, they look up only the 7 cells nearest to the rider — reducing millions of comparisons to dozens. Key Takeaways: Equidistant Neighbor Property: Hexagons eliminate the 41% diagonal distance distortion found in square grids (Google S2 / Geohash). Sub-10ms Proximity Lookups: K-Ring expansion ($K=1$, 7 cells) retrieves active candidate drivers via sharded Redis SET pipelines. Scale Optimization: Sharding active driver keys across Redis/Dragonfly DB nodes prevents single-key write lock bottlenecks under 1.25M write IOPS. What You’ll Learn That AI Won’t Tell You: ...

May 6, 2026 · 11 min · Lê Tuấn Anh