7 ms·
Making HTTP realtime with HTTP 2.0
- nwh 13y agoI feel the presentation would have had a lot more weight and clarity if not for the memes in the bottom right corner. As it stands, they just make it another fantasy creation- only the writer has an email address @google.com.
- rubiquity 13y agoIlya Grigorik knows his stuff incredibly well when it comes to networking. I encourage you to read his blog sometime. You'll find it very informative. Personally it is one of my favorite blogs. http://igvita.com http://igvita.com
- zobzu 13y agothen again that's why i like to read stuff without having a preconceived idea of the author. Best way to have a fresh view on stuff. People write some good stuff and some bad stuff. Not because they're not smart, in general. More because of pressure due to various reasons, or because they lost interest, or what not. Personally, every time i see a "not so much of a win" followed by memes to make it "look we rock!" it makes me feel pity for our whole industry
- dingaling 13y agoI found the presentation deck very disjointed; presumably his speaking notes would have drawn it together. Here's an alternative deck by Mark Nottingham http://www.mnot.net/talks/http2-wtf/#/ http://www.mnot.net/talks/http2-wtf/#/
- trentmb 13y agoWhy is non-hypertext being delivered via a protocol for hypertext?
- deleted 13y ago[deleted]
- lttlrck 13y agoWhat is content-type for then?
- deleted 13y ago[deleted]
- trentmb 13y agoTo specify the format/encoding of the hypertext? HTTP was around before I was, hence the question. If we just want to transfer generic files, maybe we should create a file transfer protocol.
- AnIrishDuck 13y agoWe could call it FTP! In all seriousness, HTTP is a good example of scope creep. The type and volume of content sent in a typical session is far different than what was common a decade ago.
- parasubvert 13y agoNonsense. HTTP is a good example of an enduring protocol design, under an enduring architecture (The Web combination of URI+MIME+HTTP). As the payloads have changed, it has evolved very little. HTTP/2.0 is an optimization to this architecture. It's unlikely it will ever fully replace HTTP/1.0. In 2003, the type of content was exactly the same: HTML, Images, CSS, JavaScript, Audio and Video. The formats weren't all that different. Nowadays the main difference is you see a lot more JSON and/or XML (mostly RSS). In 1995-1996, the formats and codecs were a bit more primitive, and the net was smaller, but it was the same sort of content: AVIs, MOVs, GIFs, JPGs, HTML, and early 1.0 JavaScript. HTTP+URI is also generally a much better protocol for transferring state than FTP. It's both simpler AND more general.
- 13y ago
- jimktrains2 13y agoI just feel like the basic idea of HTTP 2.0 misses the point of a stateless, text-based protocol. Also, muxing, flowcontrol? These are not things application level protocols should be caring about.
- shawnz 13y agoHTTP 2.0 is a bet that those ideals don't matter anymore. If the users of HTTP disagree, it just won't be adopted, simple as that.
- srd 13y agoUntil bosses without a low-level IT background show up and ask you why you're not expanding their buzzword bingo options.
- angersock 13y agoOne wonders why the hell they're trying to fix flow-control, traffic priority, encryption, etc. in a standard meant for just moving around document. It reeks of overengineering--might as well spend that energy improving TCP or putting together a better secure sockets layer. Most of the problems they cite are the result of people shoving too much shit (ads, trackers, social media, etc.) into their sites anyways.
- FooBarWidget 13y agoIt reeks of overengineering because you're not properly understanding the problem. Flow control is necessary because it's a multiplexed protocol. Without your own flow control commands, flow control is applied over the entire TCP stream, not on your substreams. That doesn't do what you want. Try it: implement any kind of multiplexed protocol yourself, and you will quickly see why it is necessary. Encryption: some of it might be for security, but a lot of it is also for backward compatibility. SPDY/HTTP2 is a different protocol than HTTP1, and there are a lot of broken routers out there that will break things unless you encrypt the entire connection as an SSL session. Those who do not understand SPDY are doomed to complain about it on HN, and then one day maybe reinvent it, poorly.
- songgao 13y agoAnybody could explain to me why multiplexing is necessary? It definitely won't speed things up and I don't see why different resources couldn't be loaded sequentially (instead of concurrently) over the same TCP/TLS connection. Adding multiplexing increases complexity and brings overhead by introducing frame headers. Also flow control seems weird to me too. Maybe it's just I failed to see a scenario where flow control in HTTP layer is really useful. Binary header and streaming (long-live TCP connection) are definitely interesting. In fact I would be really happy if I've got a connection, and can keep sending binary-format HTTP request, and the server will just respond with resource I requested in the same order. EDIT: typos
- simon_vetter 13y agoFlow control can definitely be useful when streaming audio/video files. A browser only needs a few megabytes of buffer to display 1080p content properly. Everyday example: user starts watching a youtube video, gets interrupted and pauses it, then closes the browser because they got carried away. The entire video will be downloaded and put in the cache where only a few megabytes were needed/watched. That's quite a waste of bandwidth at 1080p. Multiplexing allows you to have the same level of concurrency as you currently have with domain sharding without requiring multiple TCP connections (and TLS contexts). Starting and getting a TCP connection up to speed takes a while, especially on congested links (packet loss, spurious retransmits, slow starts, etc.), and TLS just makes the problem worse by requiring multiple back and forth to setup encryption. It also takes quite a bit of memory on servers to maintain hundreds of thousands of TCP socket and TLS states, and a lot of CPU to set up TLS contexts (Diffie Hellman can be quite expensive CPU wise). Then, there are flow-based routers, load balancers, stateful firewalls and other stateful network equipments. We'll get greater performance out of them by using less concurrent connections. I think moving to a binary protocol and reducing the number of TCP/TLS connections is a very good thing, long overdue IMHO. EDIT: typos :)
- zobzu 13y agofuck binary.
- andyl 13y agoLooks really complicated. I don't like it.
- cldr 13y agoWill this let us do SRP over HTTP?
- wmf 13y agoHTTP has now been essentially split into a lower transport layer and an upper semantics layer. If someone created an SRP extension for HTTP (see https://bugzilla.mozilla.org/show_bug.cgi?id=356855 https://bugzilla.mozilla.org/show_bug.cgi?id=356855 ) it would apply equally to HTTP 1.1 and 2.0. Or you could use SRP with TLS ( http://tools.ietf.org/html/rfc5054 http://tools.ietf.org/html/rfc5054 ), but this has the same UX problems as client certs.
- chetanahuja 13y agoI'm a bit confused that multiplexing over one TCP connection is somehow seen as a strength of this new protocol. OK. I see how muxing streams over a TCP session theoretically allows the TCP session to "fill" the available bandwidth for a longer period of time. But it also means that every stream in the session will suffer from a few packet drops (and the resultant "sputtering" slow starts over lossy physical media, ie. the mobile use-case). As for why flow control is being pushed into the app layer, the answer again comes down to multiplexing of multiple streams over one TCP connection (since without stream-level flow control, one slow end-point for a stream can potentially block the progress of every other stream in that session... see discussion here: https://groups.google.com/forum/#!topic/spdy-dev/g4PiZBTW-34 https://groups.google.com/forum/#!topic/spdy-dev/g4PiZBTW-34) I guess in the end, only real measurements with a mature implementation will answer the question. As it turned out with SPDY (1), the results of all this work might still not be enough to overcome the basic problems with TCP. (1) http://www.guypo.com/technical/not-as-spdy-as-you-thought/ http://www.guypo.com/technical/not-as-spdy-as-you-thought/
- bochi 13y agoIlya Grigorika, the presentation author, has also written a book called High Performance Browser Network that I highly recommend if you are interested on the subject. There is a free online version available at http://chimera.labs.oreilly.com/books/1230000000545/index.html http://chimera.labs.oreilly.com/books/1230000000545/index.ht...
- dhruvbird 13y agoMultiplexing is something that many application protocols could make use of and should be added between the application protocol and TCP, and not engineered into every application protocol. Plus, HTTP is supposed to be a simple text-based protocol that I can run by typing into a telnet window. It doesn't seem possible in HTTP/2.0 though :-/
- mgwhitfield 13y agohttp://mgwis.tumblr.com/post/64899888414/technological-mortality http://mgwis.tumblr.com/post/64899888414/technological-morta...