All jobs / Full-stack developer / End-to-End Architecture

Full-stack developer interview question · 1–3 years

The server needs to push status updates to the browser, and the client never sends anything back on that channel.

Server-sent events or a WebSocket?

The strongest answer

Server-sent events — it is ordinary HTTP one way, so existing auth and proxies work and the browser reconnects and resumes on its own; take a WebSocket when you genuinely need both directions at low latency

Why it works

Right — one-way push over plain HTTP costs far less to operate, and the built-in reconnect with a last-event id is a class of code you never write.

What a good answer covers

Answers that fall short

Who gets asked this

More End-to-End Architecture questions