News for hackers. Stuff that matters.

Ask HN: How Reddit and Hacker News store their news and comments?

I have some doubts about how Reddit and Hacker News manage to store such amount of news and comments while keeping all their rankings updated. I guess they must keep everything in memory using some kind of Tree structure, right? (news are parent of comments which are parent of other comments, etc.). Do they keep all news in memory? or just the last ones? do they constantly update all news ranking? or just the last ones? Hope you can help me. Thanks!
( 3 comments | on HN )
Re:Ask HN: How Reddit and Hacker News store their news and c... by benologist on Friday June 24, 2011 @06:47PM (#2694242)
Reddit's open source so you could actually look:

https://github.com/reddit/reddit/wiki

Edit: daleharvey beat me to the punchline.

Re:Ask HN: How Reddit and Hacker News store their news and c... by daleharvey on Friday June 24, 2011 @06:43PM (#2694233)
hacker news and reddit are both open source

http://arclanguage.org/ (stored plain text files which are hot loaded into memory I believe)

https://github.com/reddit/reddit (probably a database)

Re:Ask HN: How Reddit and Hacker News store their news and c... by martzom on Friday June 24, 2011 @06:50PM (#2694252)
Thanks! I have found both sources but I am java developer. I guess I should learn python or arc to find it out.