Interview practice question
Implementing polling efficiently
Frontend Engineering · Async JavaScript and the Browser · Intermediate
You must poll an API for job status until it completes. How would you implement this well?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Recursive setTimeout (wait for response).
- Increase interval over time (backoff).
- Stop on completion/error/unmount.
- Pause when hidden.
- Consider SSE/webhooks.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.