Facebook Instagram Twitter Vimeo Youtube
Sign in
  • Home
  • About
  • Team
  • Buy now!
Sign in
Welcome!Log into your account
Forgot your password?
Privacy Policy
Password recovery
Recover your password
Search
Logo
Sign in
Welcome! Log into your account
Forgot your password? Get help
Privacy Policy
Password recovery
Recover your password
A password will be e-mailed to you.
Thursday, November 20, 2025
Sign in / Join
  • Contact Us
  • Our Team
Facebook
Instagram
Twitter
Vimeo
Youtube
Logo
  • Home
  • News
    • News

      House Democrats Official Online Resume Bank Exposed the PII of Thousands of Government Job Seekers by

      29 October 2025
      News

      Cloudflare Thwarts Record-Breaking 22.2 Tbps DDoS Attack by Paige Henley

      3 October 2025
      News

      Ransomware Attack Hits Major European Airports via Collins Aerospace Software by Husain Parvez

      3 October 2025
      News

      Steam Pulls Game After Malware Steals Over $150,000 in Crypto by Husain Parvez

      3 October 2025
      News

      Mexican Senate Advances Framework for National Cybersecurity Law by Husain Parvez

      1 October 2025
  • Data Modelling & AI
    • AllBig dataBusiness AnalyticsData ScienceData Structure & AlgorithmDatabasesVector DatabaseDeep LearningEthical HackingGenerative AIMachine Learning
      Big data

      Is MCP Already Outdated? The Real Reason Anthropic Shipped Skills—and How to Pair Them with Milvus

      19 November 2025
      Big data

      Unlocking 8× Milvus Performance with Cloudian HyperStore and NVIDIA RDMA for S3 Storage

      19 November 2025
      Big data

      Power high performance RAG for GenAI with HPE Alletra Storage MP + Milvus

      12 November 2025
      Big data

      Beyond Context Overload: How Parlant × Milvus Brings Control and Clarity to LLM Agent Behavior

      8 November 2025
    • Big data
    • Business Analytics
    • Databases
    • Data Structure & Algorithm
    • Data Science
    • Deep Learning
    • Ethical Hacking
    • Generative AI
    • Machine Learning
    • Security & Testing
  • Mobile
    • AllAndroidIOS
      Android

      Google Maps gains pseudonymous reviews, an updated Explore tab, and more

      19 November 2025
      Android

      Thieves are hilariously turning down Android devices

      19 November 2025
      Android

      The 2025 YouTube Music Recap could be here any day now

      19 November 2025
      Android

      5 Samsung Wallet speed hacks to make payments faster

      19 November 2025
    • Android
    • IOS
  • Languages
    • AllAjaxAngularDynamic ProgrammingGolangJavaJavascriptPhpPythonReactVue
      Languages

      Working with Titles and Heading – Python docx Module

      25 June 2025
      Languages

      Creating a Receipt Calculator using Python

      25 June 2025
      Languages

      One Liner for Python if-elif-else Statements

      25 June 2025
      Languages

      Add Years to datetime Object in Python

      25 June 2025
    • Java
    • Python
    • Ajax
    • Php
    • Python
    • Golang
    • Dynamic Programming
    • React
    • Vue
    • Java
    • Javascript
    • NodeJS
    • Angular
  • Guest Blogs
  • Discussion
  • Our Team
HomeData Modelling & AIBig dataDesign Uber – System Design Interview
Big dataGuest Blogs

Design Uber – System Design Interview

Algomaster
By Algomaster
15 June 2025
0
0
Share
Facebook
Twitter
Pinterest
WhatsApp

    Design Uber – System Design Interview

    Ashish Pratap Singh's avatar

    Ashish Pratap Singh
    Feb 27, 2025
    ∙ Paid

    The concept of ride-hailing has transformed how we travel. Platforms like Uber, Lyft, and Ola seamlessly connect riders with drivers through intuitive smartphone apps.

    By simply entering a destination and tapping a button, users can summon a nearby vehicle and monitor its arrival in real time.

    Uber rolls out new safety, payment features for drivers - Express Mobility  News | The Financial Express

    However, building such a service at scale involves more than just connecting drivers and riders. Behind every “Request Ride” tap lies a sophisticated system coordinating real-time driver matching, efficiently finding nearby drivers, high-throughput data processing, dynamic pricing, and payment workflows.

    In this article, we will explore how to design an Uber-like system that can handle millions of rides every day.

    We’ll walk through every step of the design—from requirements and high-level architecture to database and API design. Finally, we’ll take a deep dive into core use cases like how to efficiently find nearby drivers.


    1. Requirement Gathering

    Before diving into the design, lets outline the functional and non-functional requirements.

    Functional Requirements:

    1. Ride requests: Riders should be able to input their pickup and destination locations and request a ride.

    2. ETA/Fare Estimation: The system should provide an estimated time of arrival (ETA) and estimated fare to riders before they confirm the booking.

    3. Driver-rider matching: The system should match riders with available drivers who are in close proximity.

    4. Accept/Decline: Drivers should be able to accept or decline incoming ride requests.

    5. Driver tracking: Once a rider is matched with a driver, the rider should be able to track the driver’s location and view the estimated time of arrival (ETA).

    6. Ratings: Both riders and drivers should have the ability to rate each other after a ride is completed.

    7. Payments: The user should be able to complete the payment after the ride is completed.

    Non-Functional Requirements:

    1. Low latency: The system should provide real-time location updates and fast driver-rider matching.

    2. High availability: The system should be up 24/7 with minimal downtime.

    3. Scalability: The system must handle peak loads (e.g., New Year’s Eve, sporting events).


    2. Capacity Estimation

    Assumptions

    • Total Users: 50 million riders, 5 million drivers

    • Daily Active Users (DAU): 10 million riders, 1 million drivers

    • Peak concurrent users: 1 million riders, ~100,000 drivers (assuming 10% of DAUs are active at peak hours)

    • Average Daily Ride Requests: 10 million globally

    • Peak rides per second (RPS): ~5,000

    Location Updates

    • A driver sends a location update every 3 seconds while active.

    • Assuming 100,000 active drivers at peak time:

      • Location updates per second: 100,000 / 3 ≈ 33,333 updates/sec

    Data Storage Estimation

    User & Driver Profiles

    • Rider profile: ~2 KB per user (name, email, phone, payment method, preferences)

    • Driver profile: ~5 KB per driver (vehicle details, license, payment details, ratings)

    • Total storage for 50M users: (50M × 2 KB) + (5M × 5 KB) = (100 + 25) GB = 125 GB

    Ride Data

    Each ride stores:

    • Ride ID (UUID) → 16 bytes

    • Rider ID, Driver ID → 8 bytes each

    • Start & end location (lat/lon) → 16 bytes

    • Fare, pickup/dropoff time → 24 bytes

    • Status → 8 bytes

    Total ride entry size: ~80 bytes

    • Total daily rides: 10M

    • Storage per day: 10M × 80 Bytes = 800 MB

    • Storage per year (365 days): ~300 GB

    Network Bandwidth Estimation

    Each API call (ride request, driver update, fare estimation, etc.) contributes to network usage.

    • Ride requests per second: ~5,000 RPS

    • Driver location updates per second: ~33,333 RPS

    • Total peak API requests: ~40,000 RPS

    Assuming an average API payload size of 5 KB, network bandwidth usage at peak:

    • 40,000 RPS × 5 KB = 200 MB/sec


    3. High-Level Design

    This post is for paid subscribers

    Already a paid subscriber? Sign in
    Share
    Facebook
    Twitter
    Pinterest
    WhatsApp
      Previous article
      15 Data Structures that Power Distributed Databases
      Next article
      What is a Content Delivery Network?
      Algomaster
      Algomasterhttps://blog.algomaster.io
      RELATED ARTICLES
      Guest Blogs

      NordVPN Black Friday & Cyber Monday Deals in 2025 by Gjurgjica Panova

      19 November 2025
      Big data

      Is MCP Already Outdated? The Real Reason Anthropic Shipped Skills—and How to Pair Them with Milvus

      19 November 2025
      Guest Blogs

      Proton VPN Black Friday & Cyber Monday Deals 2025 by Toma Novakovic

      19 November 2025

      LEAVE A REPLY Cancel reply

      Log in to leave a comment

      Most Popular

      Google Maps gains pseudonymous reviews, an updated Explore tab, and more

      19 November 2025

      Thieves are hilariously turning down Android devices

      19 November 2025

      The 2025 YouTube Music Recap could be here any day now

      19 November 2025

      NordVPN Black Friday & Cyber Monday Deals in 2025 by Gjurgjica Panova

      19 November 2025
      Load more
      Algomaster
      Algomaster
      202 POSTS0 COMMENTS
      https://blog.algomaster.io
      Calisto Chipfumbu
      Calisto Chipfumbu
      6789 POSTS0 COMMENTS
      http://cchipfumbu@gmail.com
      Dominic
      Dominic
      32404 POSTS0 COMMENTS
      http://wardslaus.com
      Milvus
      Milvus
      97 POSTS0 COMMENTS
      https://milvus.io/
      Nango Kala
      Nango Kala
      6775 POSTS0 COMMENTS
      neverop
      neverop
      0 POSTS0 COMMENTS
      https://geeksforgeeks.org
      Nicole Veronica
      Nicole Veronica
      11924 POSTS0 COMMENTS
      Nokonwaba Nkukhwana
      Nokonwaba Nkukhwana
      11994 POSTS0 COMMENTS
      Safety Detectives
      Safety Detectives
      2751 POSTS0 COMMENTS
      https://www.safetydetectives.com/
      Shaida Kate Naidoo
      Shaida Kate Naidoo
      6903 POSTS0 COMMENTS
      Ted Musemwa
      Ted Musemwa
      7159 POSTS0 COMMENTS
      Thapelo Manthata
      Thapelo Manthata
      6859 POSTS0 COMMENTS
      Umr Jansen
      Umr Jansen
      6846 POSTS0 COMMENTS

      EDITOR PICKS

      Google Maps gains pseudonymous reviews, an updated Explore tab, and more

      19 November 2025

      Thieves are hilariously turning down Android devices

      19 November 2025

      The 2025 YouTube Music Recap could be here any day now

      19 November 2025

      POPULAR POSTS

      Google Maps gains pseudonymous reviews, an updated Explore tab, and more

      19 November 2025

      Thieves are hilariously turning down Android devices

      19 November 2025

      The 2025 YouTube Music Recap could be here any day now

      19 November 2025

      POPULAR CATEGORY

      • Languages45985
      • Data Modelling & AI17582
      • Android15352
      • Java15156
      • Mobile12983
      • Guest Blogs12806
      • Javascript12713
      • Data Structure & Algorithm10077
      Logo

      ABOUT US

      We provide you with the latest breaking news and videos straight from the technology industry.

      Contact us: hello@geeksforgeeks.org

      FOLLOW US

      Blogger
      Facebook
      Flickr
      Instagram
      VKontakte

      © NeverOpen 2022

      • Home
      • News
      • Data Modelling & AI
      • Mobile
      • Languages
      • Guest Blogs
      • Discussion
      • Our Team