Show answer
Answer
Source: WHATWG HTML Standard, Server-sent events, Hello Interview, Networking Essentials
7 networking interview questions on polling, SSE and WebSockets, each with the correct answer and a full explanation.
Answer
Source: WHATWG HTML Standard, Server-sent events, Hello Interview, Networking Essentials
Answer
Source: RFC 6455 The WebSocket Protocol, Hello Interview, Networking Essentials
Answer
Source: Hello Interview, Networking Essentials, WHATWG HTML Standard, Server-sent events
Answer
Answer
Answer
Answer
Transport: SSE for web if it is one way, WebSockets if the app already needs client sends; mobile uses the socket while foregrounded and APNs or FCM push when backgrounded.
Routing: gateway fleet holds connections; a registry or pub/sub keyed by user lets producers reach the owning node. Gateways are mostly stateless besides the sockets.
Missed messages: persist notifications with a per user sequence; client reconnects with last seen id and the server replays. Dedup on the client by id.
Scale: estimate concurrent connections (say 20 to 30 percent of DAU), memory per connection, use L4 or connection aware balancing, drain gateways on deploy with jittered client reconnect to avoid a thundering herd.
Follow ups: ordering, fan out for group notifications, read receipts, rate limiting noisy producers.
Source: Hello Interview, Networking Essentials, WHATWG HTML Standard, Server-sent events
These questions come from the Networking Interview Practice pack in Bertopia.