System Design · Middle · Question 19 of 75

What should be handled when a WebSocket reconnects?

Explanation

Instant retries from thousands of clients will finish off a recovering server. After reconnecting, the client resubscribes to channels and requests events since the last received id. The UI shows the connection status.

Further reading

Problem with a question

System Design · Middle · question 19

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