首页 > 其他 > 详细

Uber - System Design

时间:2021-01-19 19:49:43      阅读:27      评论:0      收藏:0      [点我收藏+]

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 

on publisher/subscriber model

 

Servers Infrastructure Picture

技术分享图片

 

Reference

[1] https://www.educative.io/courses/grokking-the-system-design-interview/YQVkjp548NM

Uber - System Design

原文:https://www.cnblogs.com/wangby511/p/14297576.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!