Design the First-In First-Out Driver Queue at Airports

Last updated: November 29, 2026

Quick Overview

Design the virtual queue that drivers join when they enter an airport waiting lot, so that ride requests from the terminal are offered in fair arrival order, with rules for leaving, rejoining, and priority returns.

Uber
System Design
Software Engineer
Uber
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design the virtual queue that drivers join when they enter an airport waiting lot, so that ride requests from the terminal are offered in fair arrival order, with rules for leaving, rejoining, and priority returns.

Airport queues are a classic Uber operational system where fairness to drivers matters as much as speed for riders. The interviewer wants a clean data model, geofence-triggered state changes, and sensible handling of drivers who drift out of the lot or decline offers.

What the Interviewer Expects
  • Trigger join and leave with geofence entry and exit plus a grace period
  • Keep queue position in an ordered structure per airport and product
  • Offer requests to the head of the queue with a timeout
  • Define rules for declines, short trips, and rejoining
  • Show each driver their position and estimated wait
Key Topics to Cover
Sorted sets
Geofencing
Fairness rules
Offer timeouts
Anti-spoofing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A driver does a 10 minute trip from the airport. Should they get their place back?
  • How do you stop drivers from gaming GPS to join the queue from home?
  • How do you handle separate queues for UberX and Black at one airport?
  • What happens if the queue store fails over and loses the last minute of joins?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Drivers entering the lot geofence join the queue for their product. Terminal requests are offered to the first eligible driver. Drivers see their position. Leaving the lot for more than a few minutes ...

High-Level Design
  • Location consumer checks driver pings against airport lot geofences and emits entered_lot and left_lot events.
  • Queue service: per (airport, product) a sorted set in Redis with score ...

Submit Your Answer
Markdown supported