advancedServer-Sent Events & Real-Time

What is the difference between Server-Sent Events (SSE), WebSocket, and polling — when should you use each?

Tests whether you know SSE fits one-way server-to-client streaming, while WebSocket is needed for genuine bidirectional communication.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is the difference between Server-Sent Events (SSE), WebSocket, and polling — when should you use each?

Next Step

Continue to How does SSE scale across multiple server instances? What's the challenge and how do you solve it with Redis Pub/Sub?← Back to all Spring Boot & Microservices questions