API Design · Junior · Question 52 of 75
When do Server-Sent Events fit better than polling?
- 1When the client uploads files
- 2When data never changes
- ✓Correct answer: When the client needs updates pushed from the server as they happen, without sending repeated requests
Explanation
SSE is one-way over HTTP; WebSockets are two-way. Polling is simplest but wastes requests and adds delay.