Your question is Design Real-Time Location Tracking. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
RideWave is a consumer mobile app that lets users share live trips with friends, estimate arrival times, and receive safety alerts when a tracked device deviates from its expected route. The ML system must turn noisy mobile GPS pings into accurate real-time location state and short-horizon movement predictions.
| Signal | Value |
|---|---|
| DAU | 35M |
| Concurrent tracked devices at peak | 4.5M |
| Peak ingest QPS (location pings) | 220K events/sec |
| Average ping frequency | every 3-8 seconds while active |
| Geofence / route candidates per request | 100-5,000 depending on density |
| p99 latency budget for live update | 150ms end-to-end |
Design an end-to-end ML system for real-time location tracking in the mobile app. Your design should address: