Interview practice question
Caching a third-party API
System Design · Caching · Beginner
Your app calls an exchange rate API that charges per request and is slow. Rates update once a minute. How do you use caching?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Cache rates with TTL around 60 s.
- One fetch shared by all users.
- Background refresh job.
- Serve last value if API fails.
- Cut cost and latency.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.