System Design · Middle · Question 18 of 75

What should you use for real-time notifications that only flow from the server?

Explanation

SSE is simpler than WebSocket: it runs over HTTP, reconnects on its own and sends Last-Event-ID to catch up on missed events. WebSocket is needed when the client also sends data frequently. Polling every 100 ms creates a huge load.

Further reading

Problem with a question

System Design · Middle · question 18

Test yourself

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

Take this quiz