Ask HN: HN web stack?
I'm curious about the HN web stack. I know they use arc as the icing but I have no idea what is underneath.
server: Apache(mod_scheme) or plt(racket) web server are my two guesses db: MySQL, PostgreSQL - I read somewhere that they use MySQL
20 comments
[ 2.9 ms ] story [ 57.8 ms ] threadYou can read the source code yourself. I don't remember the database, but it's running on an Arc server.
edit: I don't think the page itself is actually proxied it seems only the static content is.
Is the HN source code actually open source itself?
I think about that when people worry about scalability. HN seems to do okay.
"I already have problems enough with that. Remember, the original motivation for HN was to test a new programming language, and moreover one that's focused on experimenting with language design, not performance. Every time the site gets slow, I fortify myself by recalling McIlroy and Bentley's famous quote
The key to performance is elegance, not battalions of special cases.
and look for the bottleneck I can remove with least code. So far I've been able to keep up, in the sense that performance has remained consistently mediocre despite 14x growth. I don't know what I'll do next, but I'll probably think of something."
http://paulgraham.com/hackernews.html
(defop hi req (prn "Hi there"))
http://news.ycombinator.com/whoami will return your login and IP. It's probably implemented in this fashion:
(defop whoami req (prn (req 'ip)) (prn (req 'id)))
Regards
Joe