Live data from Hacker News

Ask HN: Has HN been slow/spotty loading for you?

news.ycombinator.com

31–40 of 46 posts

Re: Ask HN: Has HN been slow/spotty loading for you?

#32
post #26

Earlier quoted context omitted.

Wouldn't server side caching run into issues since the page is different for each user? For instance, all the vote up/down buttons seem to have your username hardcoded into them as the href.

Yes you are right. I did not notice it. HTTP cache is effective on resources that are same for all users. One possible solution is to decouple the personalized data and load it separately using AJAX. Votes are already implemented in a similar way. Generally, I am proponent of HTTP caching. It requires some modifications of web sites in order to be effective but still the whole system remains less complicated, compare…

I know rails has the concept of caching HTML snippets, so you still have the page construction cost, but you avoid the database calls.

Re: Ask HN: Has HN been slow/spotty loading for you?

#34
post #4

I can't find the HN story, but I seem to remember that PG was rebooting the server quite regularly. It must be pretty difficult when you're looking at having to toss up continuing to use the language with it's limitations or start looking at changes to Arc. Maybe a front-end cache like nginx would help?

As stated elsewhere it really seems to be a problem with the static content hosted on ycombinator.com (maybe they aren't being cached very well browser side).

I don't know how well something like a front end cache would do to speed up content delivery as I suspect news.yc has a lot more users logged in than normal websites which might take away the advantages of a front end cache.

Re: Ask HN: Has HN been slow/spotty loading for you?

#38
post #14

10 to 20 seconds? That's pretty speedy. I've seen pages take minutes to load. I've noticed the slowness you speak of for a couple of weeks now.

That is slow for the HTML document to be returned (not rendered, but just returned).

He is saying that there are HN pages that take minutes to load.
Post reply on HN