Design Delivery Radius Lookup for Serviceable Stores at an Address

Last updated: November 29, 2026

Quick Overview

Design the service that, given a customer's address, returns every store that can deliver there, respecting each store's custom delivery area. It powers the home feed, search and checkout.

DoorDash
System Design
Software Engineer
DoorDash
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design the service that, given a customer's address, returns every store that can deliver there, respecting each store's custom delivery area. It powers the home feed, search and checkout.

Almost every DoorDash page starts with the question of which stores serve this address, so this is a common scoped design question for phone or technical screens. The interviewer wants a clean geo-indexing approach, a sensible cache, and awareness that delivery areas are polygons, not just circles.

What the Interviewer Expects
  • Choose a spatial index such as geohash, H3 or S2 and explain it
  • Handle polygon delivery areas, not only radius
  • Precompute cell to store mappings for fast reads
  • Cache results for common locations
  • Update the index when a merchant edits its area
Key Topics to Cover
Geospatial indexing
H3 cells
Point in polygon
Precomputation
Caching
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
  • How would you shrink delivery areas dynamically during a supply shortage?
  • How do you handle a store whose area crosses a river with no bridge nearby?
  • What changes if you need driving time instead of straight-line distance?
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

Input: a lat/long (address already geocoded). Output: list of store IDs that deliver there right now. About a million stores; each has a delivery polygon (often a circle of a few miles, sometimes a ha...

High-Level Design
  • Store area service: stores the polygon per store in a database.
  • Indexer: on change, covers the polygon with H3 cells at a fixed resolution (around resolution 8, about 0.7 km² per cell) and...

Submit Your Answer
Markdown supported