Interview practice question
Choosing between WebSockets and Server-Sent Events
Frontend Engineering · Async JavaScript and the Browser · Intermediate
You need to show live order status updates to customers. Would you use WebSockets or Server-Sent Events, and why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Updates flow server → client.
- SSE simpler: HTTP, auto-reconnect, works with proxies.
- WebSockets if client sends frequent messages.
- Scaling connections.
- Fallback strategies.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.