System Design · Junior · Question 49 of 75
How does long polling differ from regular polling?
- ✓Correct answer: The server keeps the request open until new data appears
- 2The client sends requests more often - every 100 ms
- 3The request is sent once per session and never repeated
Explanation
The response arrives as soon as there's an event, after which the client opens a new request. Latency is lower than with regular polling, and it works through any proxy. Today SSE or WebSocket are used more often.