First created 2021年01月18日21:50
A system with Write heavy
Requirements:
Drivers: tell the service the real-time location and availability
Customers: request a ride
Drivers: get notified / accpet a nearby customer
finish a ride and get available for the next ride
Customers: be charged fee/ give feedback and ratings
DAU:
drivers: 500K
customers: 1M
QuadTree: not suitable
since Uber drivers will update their real-time location very frequently (every 3 seconds) from one grid to another
Push Model
Broadcast the location of one driver to all its nearby customers
Servers Infrastructure Picture
Reference
[1] https://www.educative.io/courses/grokking-the-system-design-interview/YQVkjp548NM
原文:https://www.cnblogs.com/wangby511/p/14297576.html