Interview practice question
A deploy causes all clients to refetch at once
Frontend Engineering · State Management and Data Fetching · Experienced
After a backend event, all connected clients receive an invalidation message and refetch simultaneously, overloading the API. How would you prevent this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Add random jitter to refetches.
- Send updated data in message instead of invalidating.
- Refetch only visible/active views.
- Rate-limit and back off.
- CDN-cacheable responses.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.