Interview practice question
Caching for a write-heavy workload
System Design · Caching · Experienced
A ride-sharing app updates each driver's location every 4 seconds. Riders query nearby drivers constantly. Where does caching fit?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Locations live in memory store (Redis GEO).
- Database is not the hot path.
- Writes overwrite, short TTL.
- Periodic snapshots to durable store.
- Geo-queries against the in-memory index.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.