News for hackers. Stuff that matters.
Re:How Google Taught Me to Cache and Cash-In by jasonkester on Sunday September 13, 2009 @06:12PM (#820657)
We do this for the Twiddla sandboxes.

The key is that you have to be prepared for everything to evaporate if the server cycles its memory for whatever reason. In this specific case, we toss everything out of the sandboxes every 5 minutes & reset them anyway, so it's no great tragedy if they clean up after themselves from time to time.

For something with a ton of low-priority edits (like HN or Reddit where nobody sues you if their vote goes away), you could certainly get away with caching updates and only saving them out every once in a while.

There are no comments on this comment yet.