Ads skipped

System Design of Doordash: Geo-Hashing and WebSockets for Location Based Services

138K views · Jul 25, 2022 · Education

Comments · 86

  • @jackkohnjj · 3 years ago

    This was a realistic interview in the sense that the interviewer realizes that the scale they are asking to design for is completely insane (500K drivers, 10M orders a day) but still proceeds as a thought experiment. I had an interview recently for a game platform and the interviewer said I should design for 50M concurrent users. LMAO.

    29

  • @binwelbeck1482 · 4 years ago

    Jordan Knows what he is taking about ; I like his confidence and the way he explain the scenario. thanks gaurav for inviting Jordan

    47

  • @manu-o9c · 2 months ago

    I am surprised how sorted and clear jordan thinks

    1

  • @givemeabreakbro · 3 years ago

    Jordan knows what he's talking about. Every answer sounds calculated and well reasoned. Gaurav + Jordan is a killer combo. Looking forward to more such collabs

    17

  • @hardikmenger7360 · 4 years ago

    This guy was randomly seen on my feed and since then i am following him. His channel is the most no bs system design walkthrough channel.

    17

  • @geekydanish5990 · 4 years ago (edited)

    I have been watching Jordan’s content for quite a while now and dude you are just killing it thanks Gaurav for inviting him

    29

  • @aman_the_one · 1 year ago

    Watching jordan is like watching video at 2x.

    3

  • @ayonkar1534 · 4 years ago

    This is one of the best videos I have come across for SD Excellent interview candidate.

    4

  • @payalgupta3487 · 4 years ago

    Digging deeper into single component is such a good idea. Rightly said that while discussing complex systems on the whole we tend to oversimplify. Enjoyed the video thoroughly. Thanks.

    5

  • @modernsimplelife8706 · 3 years ago (edited)

    Great video! It&apos;s very helpful to see a video where both of the interviewer and the interviewee know what they&apos;re talking about in a mock. <br><br>These are some thoughts about WebRTC from my experience. I&apos;ve been using and implemented WebRTC for 3 years. WebRTC uses UDP under the hood, however it uses SCTP protocol on top of UDP (probably will be replaced by QUIC eventually) to create a TCP-like experience for data channels. The developer is allowed to configure either guaranteed delivery (TCP) or lossy (UDP). &nbsp;WebRTC requires a signaling server to build a root of trust, and connection information for both the user and the driver. WebRTC and Websocket are stateful, meaning the server needs to keep the socket connection open for the entire session, otherwise the clients must reconnect. The stateful nature makes the solution harder to scale, and more complicated. <br><br>As you guys mentioned, most users likely don&apos;t track on their food delivery as often as they would with Uber. I think WebRTC is overkill in this use case. The WebRTC connection likely gets broken (from closing the app) many times in the food delivery tracking session, and cause load churns to the server. I personally prefer doing HTTP polling with HTTP/3 transport (which is also based on UDP and support 0-RTT connection establishment). I think it is the simplest solution with reasonable low load to the server and easier to load balance horizontally.<br><br>But, at the end of the day, we should look at metrics to decide the best solution for the problem. Strategically, starting with the simplest solution to quickly gather important metrics would be a good idea. So, I would start with HTTP polling, collect the data, then re-evaluate if WebRTC is needed. Finally, collect the data between HTTP polling and WebRTC. HTTP polling might be the most optimal solution already, simpler solutions can do wonder sometimes 😀. There are also ways to reduce states in WebRTC.

    10

  • @SoumikPradhan · 4 years ago

    This collab was worth the wait. Nice discussion.

    3

  • @hounddog1 · 1 year ago

    &quot;I didn&apos;t introduce myself&quot; is wild hahaha

    1

Up next

LIVE

Low Level System Design: MakeMyTrip Booking Management System with Arun Goel

Gaurav Sen · 53K views

LIVE

Design Systems Like a Senior Engineer (Full Course)

Hayk Simonyan · 158K views

LIVE

System Design Mock Interview: Design TikTok ft. Google TPM

Aced (formerly Exponent) · 686K views

LIVE

System Design for Beginners (2026)

KodeKloud · 895K views

LIVE

Data Consistency and Tradeoffs in Distributed Systems

Gaurav Sen · 252K views

LIVE

System Design Concepts Course and Interview Prep

freeCodeCamp.org · 3.3M views

LIVE

Data & AI Whiteboard –Ep. 4: Data Contract Implementation for Operating Systems

Witboost · 62 views

LIVE

System Design for Recommendations and Search // Eugene Yan // MLOps Meetup #78

AAIF Live · 98K views

LIVE

Design Software Systems Like a Senior Engineer – Complete Course

freeCodeCamp.org · 829K views

LIVE

Google system design interview: Design Spotify (with ex-Google EM)

IGotAnOffer: Engineering · 1.7M views

LIVE

Uber System Design | High Level Design of Uber, Ola, Lyft, Careem | Software Architecture @SCALER

SCALER · 89K views

LIVE

System Design: TINDER as a microservice architecture

Gaurav Sen · 1.4M views

LIVE

Stock Trading App System Design Interview | Meta System Design

Sanket Singh · 389K views

LIVE

Dropbox system design | Google drive system design | System design file share and upload

Tech Dummies - Narendra Lakshmana Gowda · 283K views

LIVE

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Hayk Simonyan · 778K views

LIVE

System Design Interview: TikTok architecture with @sudoCODE

Gaurav Sen · 977K views

LIVE

Designing INSTAGRAM: System Design of News Feed

Gaurav Sen · 767K views

LIVE

System Design Interview: A Step-By-Step Guide

ByteByteGo · 1.1M views

LIVE

Stop Fixing Lines. Start Designing AWS Architecture.

DrQ AI · 25 views

LIVE

Zoom System Design | WhatsApp / FB Video Calling System Design | System Design Interview Question

codeKarle · 131K views

YouTube, with the door locked.

Aegis plays a clean stream instead of YouTube's player, so pre-roll ads, trackers, and fingerprinting never ride along. Drop Shields any time if you want the official player back.