3 ms·
You have got to be kidding me. The machine this server runs on must have a lot of RAM!
by enko 13y ago
You have got to be kidding me. The machine this server runs on must have a lot of RAM!
- krapp 13y agoI think he has to open it up and shake it out every week or so or it gets clogged.
- adamnemecek 13y agoI'm guessing that you could get by with some pretty simple caching. Judging by the timestamps of the new comments, there don't seem to be more than say 2 comments per minute. I'm guessing that there are even fewer new posts and probably more upvotes. But I still feel like you could get by with very little in terms of HW.
- enko 13y agoFair enough. I suppose the entire HN corpus would probably not be that large compared to modern HW capabilities. Still seems to be a bit fragile, though. I am assuming persistence is a periodic thing, making the system vulnerable to eg. power failure between persist events, ie writing the text files. To be balanced against the simplicity gains of only having to deal with in-program data structures, though, I guess. Then again it's worked flawlessly for 5+ years so what do I know!