System Design Patterns: From Fundamentals to Real Systems
0% completed
Design 2 - Ride-Sharing Dispatch
A ride-sharing service has 300,000 drivers online at its busiest hour. Each driver's phone sends its location every 4 seconds. 300,000 ÷ 4 = 75,000 location updates per second, and every one of them changes what the next search for a driver should find.
In The News Feed, a feed that is a few seconds old is fine. Here a driver's position from one minute ago is wrong. The hard part is not the amount of data. It is how fast the data changes, and which server may change each driver's state.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%