Design Live Order Tracking for the Customer App
Last updated: November 29, 2026
Quick Overview
Design the backend that shows a customer their order status and the rider moving on a map in near real time, from restaurant acceptance to delivery.
Swiggy
November 29, 20260
0
0 solved
Design the backend that shows a customer their order status and the rider moving on a map in near real time, from restaurant acceptance to delivery.
Live tracking is one of the most viewed screens in the Swiggy app, and the traffic spikes exactly when the fleet is busiest. The interviewer checks the push versus pull decision, fan-out from rider location to the right customers, and cost control for millions of open screens.
What the Interviewer Expects
- Separates order status events from high-frequency location updates
- Chooses push (WebSocket or SSE) with a polling fallback and explains why
- Maps rider updates to subscribed orders efficiently
- Throttles and smooths updates for the client
- Handles reconnects and app backgrounding
- Estimates connection and message volume
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 show a smooth rider path when updates arrive every 5 to 10 seconds?
- How would you support a batched rider carrying two orders for different customers?
- What do you do for users on 2G networks?
- How would you keep the system cheap when most users only glance at the screen?
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
Show order status changes within a couple of seconds and the rider position on the map, refreshed every few seconds while the screen is open. Scale guess: 1.5 million concurrently tracked orders at a ...
High-Level Design
- Rider app pings the location service, which writes to Kafka.
- A tracking service consumes rider locations and order events, keeps
order -> riderand the latest position in Redis. - Customer apps ...