🚗Ride-Sharing Backend
0 nodes · 0 edgesHint 1 — locked
Hint 2 — locked
Hint 3 — locked
🚗
Ride-Sharing Backend
● Intermediate30–45 min
Problem
Build the backend of a ride-sharing platform. Riders request trips, the system finds nearby available drivers and matches them, tracks GPS locations in real time, and streams live location updates back to both rider and driver during the trip. The system must be highly available globally.
Functional Requirements
- Rider requests a ride; system finds and matches the nearest available driver
- Real-time GPS location updates from drivers (every 4 seconds)
- Stream live driver location to rider's app during the trip
- Calculate estimated arrival time and fare based on route
- Support surge pricing based on supply/demand ratios
Non-Functional
- 10M daily active riders, 3M active drivers globally
- Location updates processed in < 500 ms end-to-end
- Driver matching latency < 2 seconds from request to match
- Geospatial queries must scale to city-level density (10k drivers per km²)
🚗
Design your Ride-Sharing Backend
Drag components from the Brief panel → switch to Components tab
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
UML
15
Needs Work
Click a dimension to see what's missing. Score updates as you design.
Speed
RPS
Hit Play to start simulation00:00