Overview
Design the core real-time location tracking and dispatching engine for a ride-sharing service matching riders with the nearest available drivers.
Requirements
- 1Drivers broadcast live GPS coordinates every 3-5 seconds
- 2Riders query nearby drivers within a given radius in real time (<1s)
- 3Match ride requests to optimal nearby drivers and handle accept/reject workflows
- 4Calculate dynamic pricing (surge) based on real-time supply and demand in geographic cells
- 5Ensure high availability and fault-tolerant location state recovery
Architecture Hints (4)
Target Concepts
#Geospatial#H3/S2#WebSockets#Kafka#State Machine