Long Polling, WebSockets & SSE — Concept Check
Questions on Long Polling, WebSockets & SSE. HTTP polling, long polling, WebSockets, and Server-Sent Events (SSE) are techniques for real-time client-server communication. Each has different trade-offs in complexity, scalability, and bidirectionality.
Questions in this quiz
7 questions on Long Polling, WebSockets & SSE — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A chat application needs low-latency, bidirectional communication between clients and the server. Which technology is most suitable?
- AShort polling
- BLong polling
- CWebSockets
- DServer-Sent Events
2.A stock market dashboard updates every second. Which method minimizes server load while ensuring timely updates?
- AWebSockets
- BServer-Sent Events
- CShort polling
- DLong polling
3.A server needs to push notifications to clients but only supports unidirectional communication. Which method should be used?
- ALong polling
- BWebSockets
- CShort polling
- DServer-Sent Events
4.A developer claims SSE can handle bidirectional communication. What is the flaw in this claim?
- ASSE requires HTTP/2
- BSSE is complex to implement
- CSSE is unidirectional from server to client
- DSSE supports bidirectional communication
5.A gaming app requires real-time interaction between players. Which method is least suitable?
- AShort polling
- BServer-Sent Events
- CLong polling
- DWebSockets
6.A developer wants to implement a real-time notification system with automatic reconnection. Which technology should they choose?
- ALong polling
- BShort polling
- CServer-Sent Events
- DWebSockets
7.A system uses long polling for notifications, but the server experiences high reconnection overhead. What is a potential solution?
- AUse short polling
- BIncrease polling frequency
- CSwitch to WebSockets
- DSwitch to SSE