API Design · Junior · Question 52 of 75

When do Server-Sent Events fit better than polling?

Explanation

SSE is one-way over HTTP; WebSockets are two-way. Polling is simplest but wastes requests and adds delay.

Further reading

Problem with a question

API Design · Junior · question 52

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz