Engineering Decisions · Middle · Question 5 of 14

A sports site pushes live scores to browsers. Data flows only from the server, traffic passes through regular HTTP proxies, and reconnects must be simple. What fits?

Show the answer

Correct answer: Server-Sent Events over plain HTTP

Explanation

Server-Sent Events are made for one-way streams, run over ordinary HTTP and reconnect automatically. WebSockets fit two-way traffic like chat or games, but here they add a protocol and reconnection logic for a direction nobody uses. Short polling fits rare updates, whereas every two seconds it means a lot of empty requests at this scale.

Further reading

Problem with a question

Engineering Decisions · Middle · question 5

Test yourself

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

Take this quiz