Live data from Hacker News

Why is the Internet so Slow?

blog.apnic.net

91–100 of 164 posts

Re: Why is the Internet so Slow?

#91
post #59
post #7

If you want an easy speed up and you use a modern version of nginx, which you should for many reasons but chiefly performance and security. Add these lines to your nginx config file: # Only support HTTPS and enable http2 # which will allow you to multiplex requests. # In a separate config do a 301 from normal HTTP # for all paths / subdomains. listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_ser…

HTTP2 is a garbage protocol and I continue to refuse to deploy it in our enterprise. Will wait for something else.

I didn't downvote you, but your post is content-free. Why is it a garbage protocol?

Re: Why is the Internet so Slow?

#92

Because every time we get faster connections, we download more the client and force more client side processing. Angular and friends are just causing a worse user experience, not a better one. We also don't take advantage of DNS enough. We should/could use it to pass along information about the client's ISP to locate a server one or two hops away from the client. DNS could easily solve the IPV4 with SRV records, but…

How is angular making the web slower. An angular project can sit somewhere in the 130kb range, with lighter frameworks like vue sitting at 30kb. These are smaller than most images or gifs used on the web. So the trade-off is one image on your page, or a robust RIA experience, with much more maintainable code. If you build it correctly, you're decreasing the amount of bytes on the wire significantly when using client…

This past comment chain might be quite relevant: https://news.ycombinator.com/item?id=12692595

Re: Why is the Internet so Slow?

#93

If the 3x slowdown from the infrastructure were eliminated, each round-trip-time being 3x faster would affect all the protocols above, and we could immediately cut the latency inflation from ~37x to around 10x, without any protocol modifications. The page this article is published on makes 87 separate network requests to 19 different domains. Even with a great deal of the content cached, it takes 7 seconds to reload…

As much as ads are annoying, this has nothing to do with the article. One man's bloat is another man's content. No need for this nag to be top comment on HN for an article about why data isn't moving at the speed of light.

Re: Why is the Internet so Slow?

#94
post #75
post #7

If you want an easy speed up and you use a modern version of nginx, which you should for many reasons but chiefly performance and security. Add these lines to your nginx config file: # Only support HTTPS and enable http2 # which will allow you to multiplex requests. # In a separate config do a 301 from normal HTTP # for all paths / subdomains. listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_ser…

> which you should for many reasons but chiefly performance and security. Why would you use nginx for security? I see over 100 CVEs for nginx. This isn't exactly unexpected. Nginx is an incredibly complicated piece of software written for performance in C. That's basically the trifecta of security badness. If you want security, why not use a (possibly slower) simpler product written in a safer language?

If you want no CVEs you could use my web server filed[0]. It's really fast. And written in C. ;-)

Of course, it doesn't support HTTPS or HTTP/2, so... there's that.

[0] http://filed.rkeene.org/

Re: Why is the Internet so Slow?

#96
post #7

If you want an easy speed up and you use a modern version of nginx, which you should for many reasons but chiefly performance and security. Add these lines to your nginx config file: # Only support HTTPS and enable http2 # which will allow you to multiplex requests. # In a separate config do a 301 from normal HTTP # for all paths / subdomains. listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_ser…

I just tried this and was unable to measure any difference. Variation in page load times far outweighed any difference the config change might have brought. So, YMMV. From a theoretical standpoint I agree http/2 should help (although in practice I didn't measure any difference). I can't see why tcp_nodelay would help except in extremely niche applications (sending tiny responses with lots of pauses?)

My evidence is that HTTP/2 doesn't help much if at all for lightweight sites, especially if the site manages to hit my target of the first 10kB hitting the client rendering all the above-the-fold information, and especially if the clients are reasonably close to the server.

Indeed, given that HTTP/2 forces TLS (for any mainstream browser) which forces an extra RTT, for light pages my evidence is that HTTP/2 makes things marginally worse...

http://www.earth.org.uk/note-on-carbon-cost-of-CDN.html

Re: Why is the Internet so Slow?

#97

Earlier quoted context omitted.

Is there similar things that can be done on a go-based server? Particularly Caddy...

Cache everything you can. This is a good lecture on scaling a site http://15418.courses.cs.cmu.edu/spring2016/lecture/webscalin...

Doesn't help with first page view when visiting from organic search or somewhere like HN. I do cache like it was going out of fashion, but I optimise for the first hit and assume 100% bounce rate anyway!

RTT hurts in my world.

Re: Why is the Internet so Slow?

#98
post #40

Earlier quoted context omitted.

In the context of the speed of light, it really isn't.

greydius corrected me asserting that the factor between ligth speed and car speed is 10 millions, and not one million as I said. But in true there are production cars that pass 430 km/h, resulting in a factor of about 2.5 millions. A lot less than 10 millions. https://en.wikipedia.org/wiki/Production_car_speed_record

You should not compare the fastest car speed, but the average car speed, which for this argument would probably be closer to 200km/h. That puts it in a factor of 5 million, which is within one order of magnitude of the original guess.

Re: Why is the Internet so Slow?

#99

If the 3x slowdown from the infrastructure were eliminated, each round-trip-time being 3x faster would affect all the protocols above, and we could immediately cut the latency inflation from ~37x to around 10x, without any protocol modifications. The page this article is published on makes 87 separate network requests to 19 different domains. Even with a great deal of the content cached, it takes 7 seconds to reload…

As much as ads are annoying, this has nothing to do with the article. One man's bloat is another man's content. No need for this nag to be top comment on HN for an article about why data isn't moving at the speed of light.

He's not making an argument for the elimination of ads, bloat comes in so many different forms. Loading entire libraries to solve trivial tasks, dragging in massive images where they don't belong, etc.

Re: Why is the Internet so Slow?

#100

CDF = cumulative distribution function People who care about how fast the internet is are not the same set as people who know statistics acronyms, and they don't show up in a simple web search. You know how else we can make the internet better and faster? Publishing articles with software and licenses that make it easy for people to improve and share your article.

If you are unfamiliar with basic statistical concepts it is hard to believe you will be able to provide any compelling contributions to making the internet faster.

No, that really doesn't follow.

Some classes of issues will be better solved if the solver understands stats. M/M/1, distributions, percentiles, etc, yes. If only I understood them...

By my local major London paper somehow needs 4MB of crap and >60s to display a 2 para story. I don't need anything as subtle as "stats" to tell them that they're holding it wrong and why I avoid their site like the plague.

Post reply on HN