4 ms·
> and it unlocks performance improvements I thought https added performance overhead, where does it improve it?
by thinkloop 9y ago
> and it unlocks performance improvements
I thought https added performance overhead, where does it improve it?
- JeremyBanks 9y agoThey're gating HTTP/2 (and other new features) to HTTPS. It "unlocks" them in the sense that the browser vendors don't lock the features on HTTPS like they do on HTTP. :P
- CiPHPerCoder 9y agoNope. http://www.httpvshttps.com http://www.httpvshttps.com https://www.httpvshttps.com https://www.httpvshttps.com See also: https://istlsfastyet.com https://istlsfastyet.com
- tptacek 9y agoThis is a pretty bogus comparison; it's HTTP/2 versus HTTP/1.1.
- CiPHPerCoder 9y agoIt's HTTP/2 over TLS versus HTTP/1.1 without TLS.
- tptacek 9y agoYes. The performance benefit isn't really TLS.
- CiPHPerCoder 9y agoGiven that "currently no browser supports HTTP/2 unencrypted" they're inseparable in the real world. https://http2.github.io/faq/#does-http2-require-encryption https://http2.github.io/faq/#does-http2-require-encryption
- tptacek 9y agoRight, but enabling TLS on an HTTP/1.1 site isn't going to generate that performance improvement. It's a bogus comparison.
- CiPHPerCoder 9y agoOh, I see what you mean. The relationship doesn't work both ways, and the benchmark might lead one to believe it does.
- tokenizerrr 9y agoSo it's a http2 vs http1 benchmark. Not a http vs https benchmark?
- CiPHPerCoder 9y agoRight. HTTP/2 is only available with TLS, due to browser policies, so it necessarily requires TLS. This means you need HTTPS if you want the performance wins of HTTP/2. This doesn't mean that HTTPS is a performance win if you're still using HTTP/1.1. However, the "performance overhead" for TLS is negligible in practice.
- tptacek 9y agoYes, so there are two major changes you'd need to get this performance benefit, not one, and if you just make the TLS change, your performance will (probably marginally) suffer, not improve. It's a bogus comparison.
- tzahola 9y agoDidn't you know that air fresheners make cars go faster? Just look at my Ferrari F450 with an freshener vs this Nissan Micra without one!
- deleted 9y ago[deleted]
- tzahola 9y ago"Plaintext HTTP/1.1 is compared against encrypted HTTP/2 HTTPS" LOL Now show me how plaintext HTTP/2 is slower than HTTP/2 + TLS!
- CiPHPerCoder 9y agoPractically speaking, plaintext HTTP/2 doesn't exist. Your browser will not use HTTP/2 without TLS.
- tzahola 9y agoIf only one could communicate with an HTTP/2 server without using one of the popular browsers... :( EDIT: Wow, wait a sec, you actually can! You can actually use the HTTP/2 protocol outside of a web browser! Why didn't anyone tell me this before??