Interview practice question
Caching a product page
System Design · Caching · Beginner
Product pages are slow because each one runs several database queries. How would you add caching?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Cache assembled product data in Redis.
- Key by product ID (and locale).
- Cache-aside with TTL.
- Invalidate on product update.
- CDN for images.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.