TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Yesterday's best-practices are today's HTTP/2 anti-patterns

221 点作者 vladaionescu将近 10 年前

9 条评论

olalonde将近 10 年前
Can I get some of the http/2 performance benefits by putting a http/2 reverse proxy in front of a regular http server? Does such a thing exist?
评论 #9632432 未加载
评论 #9634090 未加载
frik将近 10 年前
Do these HTTP&#x2F;2 server implementations downgrade to HTTP0.x&#x2F;1.x if the client support only an older version? Will there be v2-only servers in near future?<p>If the answers are in the slides, forgive me - using the iPad the Google slide software breaks the back button and is too annoying to read beyond a few slide pages. Debugging and implementing older protocols seem to be easier, as they were text based.
评论 #9633263 未加载
BorisMelnik将近 10 年前
&quot;This would have a larger effect on the speed of the internet than increasing a users bandwidth from 3.9Mbps to 10Mbps or even 1Gbps&quot;<p>I&#x27;m sold. What would be the easiest way to makes this happen for someone like me with a pretty vanilla LAMP server?
评论 #9632738 未加载
评论 #9637293 未加载
bonobo将近 10 年前
I never took the time to try WebSockets, so please forgive me if this question doesn&#x27;t make sense, but, does HTTP&#x2F;2 supersedes WebSockets? I&#x27;m under the impression that HTTP&#x2F;2 covers all the WebSockets&#x27; use cases, is this a correct observation?
评论 #9632912 未加载
评论 #9632792 未加载
评论 #9633015 未加载
评论 #9632736 未加载
fake-name将近 10 年前
Holy shit, fuck that site. It overrides the BACK AND FORWARD BUTTONS for fucking page changes.
评论 #9633290 未加载
评论 #9633293 未加载
评论 #9633576 未加载
评论 #9633377 未加载
评论 #9634145 未加载
评论 #9633214 未加载
vladaionescu将近 10 年前
The chapter in the book goes over more details: <a href="http:&#x2F;&#x2F;chimera.labs.oreilly.com&#x2F;books&#x2F;1230000000545&#x2F;ch12.html" rel="nofollow">http:&#x2F;&#x2F;chimera.labs.oreilly.com&#x2F;books&#x2F;1230000000545&#x2F;ch12.htm...</a>
Silhouette将近 10 年前
Interesting read, but as far as I can tell this article mostly makes a strong case that using HTTP&#x2F;2 at all is an &quot;anti-pattern&quot; for most projects[1] today, for at least three reasons.<p>Firstly, the presentation seems to start by arguing that round-trip latency has much more of an impact on perceived performance than bandwidth, but then argues for several techniques whose principle advantage is saving small amounts of bandwidth. So how much improvement will these new techniques really offer over current best practices for &quot;an average web site&quot;?<p>Secondly, the presentation seems to argue that simplifying front-end development processes by avoiding things like resource concatenation is a big advantage of HTTP&#x2F;2, yet despite repeatedly emphasizing the need for the server to provide just the right responses to make HTTP&#x2F;2 work well, it almost completely ignores the inevitable challenges of actually configuring and maintaining a server to take advantage of all of these new techniques in a real, production environment, with rapidly evolving site structure and content, numerous contributors, etc.<p>Essentially, this seems to be advocacy for dumping tried, tested, universal &quot;workarounds&quot; for the limitations of HTTP&#x2F;1.1 in favour of new techniques that work well with HTTP&#x2F;2 and only HTTP&#x2F;2, but as an industry we have relatively little experience in what actually works well or doesn&#x27;t with HTTP&#x2F;2 and we have relatively few tools and relatively little infrastructure available that support it right now. And crucially, making the shift is not by any means a neutral activity; it is actively and severely harmful to several of the most important tried-and-tested techniques we&#x27;ve used up to now.<p>Finally, there is the simple matter of trust or, if you want to be kinder, future-proofing. The presentation notes that Google are deprecating SPDY from early 2016. That is the supposed HTTP replacement that was the New Shiny... yesterday, I think, or maybe it was the day before. When arguing for fundamental and irreversible changes in the basic development process and infrastructure set-up, you lose all credibility when your so-called standards fall out of favour faster than a GUI or DB library from Microsoft, and when your own browser frequently breaks due to questionable caching and related behaviour.<p>It&#x27;s certainly true that HTTP&#x2F;1.1 isn&#x27;t perfect and there are practical ways it could be improved, but I don&#x27;t think this presentation makes a strong case for adopting HTTP&#x2F;2 as the way forward.<p>[1] YMMV if you actually do work for Google&#x2F;Facebook&#x2F;Amazon, and you really do have practically unlimited resources available to maintain both your sites and your servers, and you really are making&#x2F;losing significant amounts of money with every byte&#x2F;millisecond difference.
评论 #9632584 未加载
评论 #9632391 未加载
评论 #9632393 未加载
评论 #9632734 未加载
评论 #9632886 未加载
philjr将近 10 年前
This is a really interesting read (linked from that presentation)<p><a href="http:&#x2F;&#x2F;chimera.labs.oreilly.com&#x2F;books&#x2F;1230000000545&#x2F;ch12.html" rel="nofollow">http:&#x2F;&#x2F;chimera.labs.oreilly.com&#x2F;books&#x2F;1230000000545&#x2F;ch12.htm...</a><p>* one tcp connection per request<p>* Server push functionality &#x2F; server initiated streams<p>* current implementations means http&#x2F;2 works over tls _only_ - neither Firefox nor chrome currently support non encrypted connections. This does keep things simpler with things like proxies in the middle I presume also.<p>* tls implementations must now support sni also so basically http&#x2F;2 is now a forcing function for supporting sni which is awesome.
0x006A将近 10 年前
what are the current http&#x2F;2 server options?
评论 #9632017 未加载
评论 #9632326 未加载
评论 #9632104 未加载
评论 #9632219 未加载
评论 #9632368 未加载