3 ms·
> I ran a web app with identical pageview numbers That's cute, but was your web app as hard to cache as Reddit? Scaling a fully static website is trivial, and
by masklinn 16y ago
> I ran a web app with identical pageview numbers
That's cute, but was your web app as hard to cache as Reddit?
Scaling a fully static website is trivial, and the more dynamism you include, the harder it becomes.
There is barely anything static on a logged in Reddit user's page.
- rb2k_ 16y agoIsn't every single subreddit cachable? Only the starting page isn't 100%, but I'm sure that many users have the same combination of subreddits (e.g. the default ones). Would be interesting to see if they have certain "user classes". Something like: USERCLASS = SHA1(SUBREDDIT1 XOR SUBREDDIT2 XOR SUBREDDIT3)
- masklinn 16y ago> Isn't every single subreddit cachable? For logged in users, you're still going to need the voting status for the current user on every single submission as well as that submission's hidden status for the current user to decide whether or not a submission should be displayed in the listing. I believe they almost never hit the DB directly, so these are probably recached immediately (or submitted to both the cache and the DB at the same time), but that still means quite a lot of traffic.
- jonknee 16y agoThe cache is invalidated after every vote.