Interview practice question
Caching personalised prices
System Design · Caching · Experienced
An airline shows prices that vary by user segment, currency and route, and they change often. How do you cache without showing wrong prices?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Cache base fares by route/date, short TTL.
- Apply segment and currency at request time.
- Display cached, confirm live before booking.
- Event-driven invalidation on fare changes.
- Show "price may change" messaging.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.