Interview practice question
Search endpoint returns too much
Backend Engineering · API Design · Beginner
A search endpoint sometimes returns 50,000 results and the response takes 10 seconds. What would you change?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Pagination with max page size.
- Limit result fields.
- Use search engine for full-text.
- Indexes for filters.
- Return approximate counts.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.