HN only supports 20 req per second???
flat files, no database
The bottleneck is the amount of garbage created by generating pages. IIRC there is some horrible inefficiency involving UTF-8 characters.
21–30 of 202 posts
HN only supports 20 req per second???
flat files, no database
The bottleneck is the amount of garbage created by generating pages. IIRC there is some horrible inefficiency involving UTF-8 characters.
Who's Filo? David Filo?
Who's Filo? David Filo?
That was my first thought and it would appear so. Filo was a big FreeBSDer http://zer0.org/daemons/yahoobsd.html
Earlier quoted context omitted.
What does "web scale" mean? I see it thrown around a lot without much explanation.
http://www.youtube.com/watch?v=b2F-DItXtZs
"Shards are the secret ingredient in the web scale sauce. They just work."
Earlier quoted context omitted.
flat files, no database
That's not the bottleneck. Essentially there's an in-memory database (known as hash tables). Stuff is lazily loaded off disk into memory, but most of the frequently needed stuff is loaded once at startup. The bottleneck is the amount of garbage created by generating pages. IIRC there is some horrible inefficiency involving UTF-8 characters.
What is the main bottleneck of HN?
Earlier quoted context omitted.
That's not the bottleneck. Essentially there's an in-memory database (known as hash tables). Stuff is lazily loaded off disk into memory, but most of the frequently needed stuff is loaded once at startup. The bottleneck is the amount of garbage created by generating pages. IIRC there is some horrible inefficiency involving UTF-8 characters.
> That's not the bottleneck. What is the main bottleneck of HN?
"It turns out there is a hack in FreeBSD, invented by Filo, that causes the O/S not to give a new connection to the server until an entire HTTP request has arrived." I wouldn't call it a hack, but a feature ;-) # Buffer a HTTP request in the kernel # until it's completely read. apache22_http_accept_enable="yes" Is HackerNews web scale?
What does "web scale" mean? I see it thrown around a lot without much explanation.
Anyone know if they're referring to "accept filters" here? FreeBSD folks can "man accf_http" if they're curious, which does prevent a request from being handed off to the application until the complete (and valid?) request has been made. Certainly not a "hack" but a feature of the OS itself.
Or they could use a proxy. All this "fuck me I'm famous" attitude is stupid.