Design Curbside Pickup Arrival Detection for Whole Foods Orders
Last updated: November 29, 2026
Quick Overview
Design the system that detects when a customer with a grocery pickup order is approaching or has arrived at a Whole Foods store, so staff can bring the order out within minutes.
Amazon
November 29, 20260
0
0 solved
Design the system that detects when a customer with a grocery pickup order is approaching or has arrived at a Whole Foods store, so staff can bring the order out within minutes.
A location-services prompt in the style Amazon grocery teams use, mixing mobile constraints with store operations. Interviewers check how you balance battery life against timeliness, how geofences are evaluated, and what happens when location is unavailable.
What the Interviewer Expects
- Use OS geofencing on the device instead of continuous GPS streaming
- Define two stages: approaching (ETA) and arrived
- Route arrival events to the right store's staff queue
- Provide a manual 'I am here' fallback
- Handle privacy: track only during the pickup window
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you estimate an ETA so staff start bagging early?
- What if GPS is inaccurate in a parking garage?
- How do you avoid false arrivals for customers who live next to the store?
- How would you measure the system's success?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: when a customer starts the trip (or the pickup window begins), detect approach about 10 minutes out and arrival in the pickup zone; notify the store's pickup staff app with order ID an...
High-Level Design
- Mobile app registers two OS geofences per active order: a wide circle (about 3 km) for approaching and a tight polygon or circle around the pickup bays.
- On the wide fence enter, the app star...