Practice · High Level Design · Real-Time and Location
Design a Ride-Hailing Platform
IntermediateGeohashLocation updatesMatchingSurge pricing⏱ 3-4 h
Matching riders and drivers in real time like Pathao or Uber: geo-indexing, millions of location updates, the matching service, trips as state machines, and surge pricing.
✎
This one is being written
The full solution is on its way. Here is its outline, so you can try designing it yourself first.
- 01Problem introduction
- 02Problem statement
- 03Requirements
- 04Capacity estimation
- 05API design
- 06Database design
- 07Architecture
- 08Request lifecycle
- 09Component deep dive
- 10Scaling, 100 to 10M users
- 11Failure scenarios
- 12Reliability and observability
- 13Security
- 14Trade-offs
- 15Final architecture
- 16Interview discussion
Designed it yourself and understood the solution? Mark it to track your progress.