今際の国の呵呵君: [System Design]Location Based Service
Problem: Design a location based service like Uber?Scenario:
Rider should be able to request a service, an available driver should be matched
We should be able to keep track of driver's location->drivers report location every 4 seconds(based on this article)
Services:
Geo Service: stores drivers location information, handle queriers like "give me drives within 2kms of this location". Since drivers report location information every 4 seconds, it will be write heavy. Assume 0.2M active drivers per day, QPS will be 200000 / 4 = 50K, Peak QPS might be 50 * 3 = 150K, writes need to be efficient
Dispatch Service: To handle riders request, matches the driver and keep track of the trip information
Read full article from 今際の国の呵呵君: [System Design]Location Based Service
No comments:
Post a Comment