W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2015

Re: [whatwg] HTTP/2 push detection and control in JavaScript

From: Kornel Lesiński <kornel@geekhood.net>
Date: Fri, 20 Feb 2015 10:53:17 +0000
Message-Id: <3353672B-03D4-4E45-A696-DC9903A48F69@geekhood.net>
To: Brendan Long <self@brendanlong.com>
Cc: WHAT Working Group <whatwg@lists.whatwg.org>

> On 20 Feb 2015, at 10:48, Brendan Long <self@brendanlong.com> wrote:
> The obvious question to ask is “why not just poll the server”? The answer its that live streaming latency depends (among other things) on how quickly you poll. Unless you can perfectly predict when the server will have an update available, you need to either poll slightly late (introducing latency) or poll significantly more often than the server creates updates. Using server push is equivalent to to polling infinitely fast, while simultaneously reducing load on the server by making fewer requests (win/win).

For server push we already have Server-Sent Events:


> I’m not really concerned with how this is solved, but an example would be to add to XMLHTTPRequest:

XHR is dead. 


regards, Kornel
Received on Friday, 20 February 2015 10:53:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:27 UTC