3 ms·
Ask HN: How does Hacker News load so quickly?
I know that it's a stripped down web-page with light HTML code but even so Hacker News loads faster than pretty much any other page I visit.
What does the infrastructure look like and how is it architected to load so quickly?
Apologies if this has already been discussed somewhere. I tried googling but didn't find anything written on it.
- cancelbubble 14y agoFunny, opening this particular page took ~ 17 seconds for me doing the mental one-one thousand, two-one thousand, three-one thousand timing. I have similar slowness hitting main pages and paginating. Edit: Took ~ 8 seconds to save this and ~ 10 seconds to bring up this edit page.
- LaaT 14y agoAFAIK there's no DB, everything stays on memory. In addition to that the HTML served is pretty minimal.
- noahc 14y agoYou might want to start here: http://tools.pingdom.com/fpt/#!/rYKceEmOr/ http://tools.pingdom.com/fpt/#!/rYKceEmOr/ You can make almost any page load quickly if you have only five requests and about 3kb of Images and CSS together. Google's homepage is considered pretty minimal and yet it's images are 25 times the size of HN's and it has 14 requests.
- AznHisoka 14y agoI feel the opposite.. sometimes HN takes so long to load than other pages.
- Ineffable 14y agoTry Reddit.