3 ms·
How is reddit highly cacheable? Maybe old/infrequently accessed discussions are cacheable, but the live set is too dynamic. So there probably isnt much of a win
by goykasi 3y ago
How is reddit highly cacheable? Maybe old/infrequently accessed discussions are cacheable, but the live set is too dynamic. So there probably isnt much of a win there.
The feeds are definitely not cacheable (except for maybe on a per user basis with a low ttl). Popular and all are never the same upon reload. And every user is going to have a different combination of subreddits. Those feeds have to be generated on the fly. Most of the data is too dynamic and ever-changing to cache effectively.
- conradfr 3y agohttps://medium.com/@sevebadajoz/exploring-cache-optimization-with-reddits-infrastructure-f5682325990d https://medium.com/@sevebadajoz/exploring-cache-optimization... Also a lot of their content is not "hot" and "commentable" anymore.
- raverbashing 3y ago- Cache for unlogged users, have a less dynamic front page (let's say 10s cache), that would help a lot - Cache of most popular topics (again, even a 10s invalidation time) would help For the logged users you could do something more dynamic, for example, cache the front-page snippets of the main subs + add the ones for the user. And again cache that (unless the 'new reddit' makes this harder, to which I would say - well deserved! ;) )