Interview practice question
Slow optional data in a response
Backend Engineering · API Design · Intermediate
Your product detail endpoint calls a recommendations service that is sometimes slow, making the whole endpoint slow. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Treat as optional.
- Call in parallel with tight timeout.
- Return without recommendations on timeout.
- Or separate endpoint loaded later.
- Cache recommendations.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.