Uber System Design | Ola System Design | System Design Interview Question - Grab, Lyft

Uber System Design | Ola System Design | System Design Interview Question - Grab, Lyft

codeKarle

4 года назад

123,714 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kumarswaminathan6375
@kumarswaminathan6375 - 15.01.2024 19:40

The white board is often hidden by the instructor. It would be best if these were slides and the relevant portions are highlighted using markers or shading techniques. The instructor's video can be relegated to a thumbnail except at start and end. Good content but poor presentation.

Ответить
@thenighthoughts
@thenighthoughts - 28.12.2023 17:34

Ответить
@ravig5413
@ravig5413 - 23.08.2023 11:09

man, you are real good. seems you have worked at Uber or 1 of these cab apps, and have great understanding of when/where to use different tools/databases. thx much! But 1 point these are so detailed (including the time that would take to draw each of those layouts and bullet points), and some of these sys design interviews are only for 45 minutes (which actually may be only 35 minutes leaving the 5 minutes each for intro/outro), can't cover everything, but we can at-least layout the buffet of knowledge we have and let them pick what they would want us to go over.

Ответить
@prashub8707
@prashub8707 - 26.04.2023 06:46

You are an amazing teacher. Why have you stopped making such an amazing videos . Kindly create contents of top quality. You rock

Ответить
@hiteshklalwani
@hiteshklalwani - 07.04.2023 19:03

Cab finder is doing so many things, how do we handle spike in requests for it? Do we enqueue requests and spin up more instances of services?

Ответить
@madipallynaveenkumar6811
@madipallynaveenkumar6811 - 02.03.2023 13:49

Nice explanation!.. Liked it!

Ответить
@KrithiHayagriva
@KrithiHayagriva - 04.11.2022 13:56

Fantastic bro. Your teaching style and kind of substance you produce is awesome!

Ответить
@abhinav8804
@abhinav8804 - 04.11.2022 00:06

What an amazing explanation to the most complex of things. Teaching is an art, and it does get exemplified by your teaching style.
Kudos to you man

Ответить
@rabindrapatra7151
@rabindrapatra7151 - 22.10.2022 14:23

In many interview people ask algorithms in system design round. but I see your most of the design is like use kafka for self pace or decoupling, scaling. Redis for cache over mysql. It would be great if you can add algo in each explanation.

Ответить
@adityakhare7073
@adityakhare7073 - 11.10.2022 22:04

How can we scale the websocket handlers, if we have lakhs of drivers live at the same time how can we handle that? We just can't add more and more websocket servers right?

Ответить
@04minutes53
@04minutes53 - 05.10.2022 03:12

Good One Buddy ...But Please focus the camera on the board rather than your Face. That will help

Ответить
@idotsuk
@idotsuk - 30.08.2022 20:02

why would you use mysql for user data?

Ответить
@yuenyiupang
@yuenyiupang - 26.08.2022 11:21

um...what happend when the driver is offline (car crash, no battery, phone break) or reject the trip, when you try to assign a trip to him, how to handle the confirmation ?

Ответить
@jkl89966
@jkl89966 - 07.08.2022 05:17

Hi, can anyone help with this question: System design question to design a heatmap. user can input any range of times (in minutes) and I want to be able to see the density of drivers on the map color coded You don't have to worry about the actual color coding part (assume you have some UI that will take in the count input and do the coloring for you).

Ответить
@amolnagotkar3037
@amolnagotkar3037 - 18.07.2022 20:14

thnx for this video

Ответить
@mohitjain5232
@mohitjain5232 - 25.06.2022 21:04

Great video! Very cohesive and in-depth. Thanks.

Ответить
@AlbertoRodriguez-oe6jo
@AlbertoRodriguez-oe6jo - 25.06.2022 19:11

I think the complexity of maintaining redis to map driver id - handler and the reverse mapping also can be avoided.
If we load balance the request from driver based on driver id hash, the request will go to the corresponding socket handler, and when the response comes back say driver gets a ride booked, the driver object will have the id from which corresponding handler can be found. Thereby eliminating the need to store mapping.

Ответить
@sonufarkya3815
@sonufarkya3815 - 12.06.2022 13:09

Thanks Sandeep ... Such a great video. just one thing so customer also connects with Map service to find out its location + the A(pickup) and B(drop point) point

Ответить
@arunraj2527
@arunraj2527 - 20.05.2022 17:20

Seen a lot of videos of Uber design. GeeksForGeeks says its a 'Hard' problem. After watching your video, its not that hard it seems. Easily navigable.

Ответить
@TheVergilfrans
@TheVergilfrans - 21.03.2022 02:02

Very good explanation...all scenarios covered.

Ответить
@mayanklalaiya9669
@mayanklalaiya9669 - 09.03.2022 22:30

This video is very good. The best thing is that you have provided summary also with clear diagram.

Thank You very much.

Ответить
@kumarutkarsh7126
@kumarutkarsh7126 - 16.02.2022 11:24

Can instead of segmentation by road distance. we take time

Ответить
@ashleydorris1995
@ashleydorris1995 - 13.02.2022 05:09

Great video! Watched 3 other videos and this one is the best by far. One thing though is you never mentioned what Location Service will write to Kafka. Can you please clarify this?

Ответить
@sahilarora1794
@sahilarora1794 - 12.02.2022 16:32

Hey Sandeep, Great content. Just few doubts :
How do we divide the area into segments as you mentioned?
Why we have different driver service, we could just include one field as role ( user/driver) and utilize same service only?

Ответить
@andywang6856
@andywang6856 - 06.02.2022 04:37

Thanks for the great video! I think the WebSocket Server stuff adds a bit unnecessary complexity. This way the web server is no longer stateless. Why cannot we store the trip-driver matching information in database, so every time drivers send location data the web server query the db to find assigned trip and return to driver if exists?

Ответить
@Imrohanroy
@Imrohanroy - 17.01.2022 10:52

Speed up the video to 1.5 and thank me later :+1

Ответить
@edwardteach2
@edwardteach2 - 06.01.2022 20:40

U a System Design God

Ответить
@nehasht2
@nehasht2 - 02.01.2022 23:19

It's like sectors of telecom towers 😀 and do visitor stuff , local to the area...only correct usecase of Cassandra is trip history...can we use weighted graphs to calculate minimum distance? shouldn't we draw circles rather than segment because it will be equidistant and all cabs with in that radius can be then selected based on requirement

Ответить
@bigmugable
@bigmugable - 19.12.2021 08:59

Brilliant

Ответить
@princekm5902
@princekm5902 - 13.12.2021 07:00

Can I specify that the system should be Real Time?

Ответить
@kumarmanish9046
@kumarmanish9046 - 05.12.2021 13:14

Very confused between roles of Location service and Map service. Who takes lat long and returns segment id ? Who identifies the list of drivers based on segment?

Ответить
@dharmendrabhojwani
@dharmendrabhojwani - 29.11.2021 10:03

Good Content.

Ответить
@rkpantangi
@rkpantangi - 10.11.2021 06:03

All your videos are very good. They are good to think about various requirements, splitting a given problem into multiple services and so on. But I think you haven't been talking about the data model, how it can be represented in a NoSql vs RDBMS vs graph database, and so on. Many interviewers expect that discussions, if not all. Hope you can do that in your future videos. Thanks!

Ответить
@ameyjain3462
@ameyjain3462 - 21.10.2021 23:52

make one for coding platform like leetcode

Ответить
@evkumar71
@evkumar71 - 05.10.2021 04:58

I watched a couple of videos on Uber system design and wasn't satisfied and luckily ended up here. Very good explanation focusing on key components. Thanks bro !

Ответить
@keerthikanthchowdary2676
@keerthikanthchowdary2676 - 30.08.2021 20:13

It would have been great if you had covered how the request for cab is fanned out to multiple drivers and once any one driver accepts the trip, how the request is dropped from all the other drivers. overall content is very good and helpful. Very good effort.

Ответить
@rohan8arora
@rohan8arora - 23.07.2021 13:21

would it not be easier to put driver locations in a kafka first and then have multiple consumers reading for location service? This way the load will be fairly balanced.

Ответить
@anushree3744
@anushree3744 - 18.07.2021 15:43

How the ride sharing will be implemented? Say, user is trying to book a seat in a shared cab.

Ответить
@puneetapiit
@puneetapiit - 05.07.2021 16:09

Bro you are fantastic. So today I had an interview with MSCI (Morgan Stanley) and they asked me about designing around Ola, where they wanted me to show the cabs around a user as soon as he logins to the app. I remembered this video of yours and explained how things work and how the mapping service would divide the city into grids and fetch the information. The interviewer was satisfied and I feel I have cracked the round. All thanks to you \m/

Ответить
@varunleoin
@varunleoin - 18.06.2021 14:44

Did system like Uber/Ola really uses Redis for storing location -- driver mapping ?

Ответить
@rishirajtandon3849
@rishirajtandon3849 - 02.06.2021 16:17

Hi,
In the video, you said we will keep the driver location in NoSQL DB, what would be the sharding key for cabs location data? To fetch fast their current location. The driver will be continuously moving after every 4-sec new location feed will come and the old location feed will be stale data.
Please help.

Ответить
@krishnashah3765
@krishnashah3765 - 26.05.2021 13:45

If Uber stores driver data for every 5 seconds, the data stored is insanely huge. Data stored per day would be 30 bytes * (86400/5) * 1M Drivers. Around 500 GB per day. Around 300 TB per year just for storing driver location

Ответить
@thinktough
@thinktough - 23.05.2021 16:29

Hi, thanks for the content on this channel! Had one question though.. in the customer flow, we will need a load balancer that makes a web socket connection to the cab request service right? Since there can be multiple customer requests at the same time?

Ответить
@NikPnchl7
@NikPnchl7 - 10.05.2021 14:18

Would using a quadtree be a quicker way of determining cabs in the same segment as the rider trying to hail a cab ?

Ответить
@pawandeepchor89
@pawandeepchor89 - 27.04.2021 22:49

Very nice work 👍

Ответить
@ourtravelgems
@ourtravelgems - 26.04.2021 21:20

"Segment" is essentially a quad tree.

Ответить
@avik1983
@avik1983 - 21.02.2021 21:03

Very easy to understand & amazing!!

Ответить
@mrdime9318
@mrdime9318 - 20.01.2021 09:06

Can I know how some founders of the app did this complex thing by themselves ?

Ответить
@gopalakrishnarao4273
@gopalakrishnarao4273 - 19.12.2020 21:13

minute correction. it's (1,0) on x-axis and (0,1) on y-axis

Ответить