4 ms·
Why is pulling caching into the middle of an app a good idea? Memcached should be a last resort. The database should have a cache for things that get asked for
by megaman821 16y ago
Why is pulling caching into the middle of an app a good idea? Memcached should be a last resort. The database should have a cache for things that get asked for over and over. Having a full page caching solution like Varnish is pretty doable for most sites where the only customization is the username at the top of the page which could be populated with javascript. Cache invalidation is a hard problem, why would most devs want anything to do with it? On lightly customizable sites, the only thing I would consider using memcached for is a faster session store.
- frankwiles 16y agoSo caching on the front and back ends is perfectly acceptable, but in the middle is not? In reality, large sites would and should use all three to their advantage.
- megaman821 16y agoIt's perfectly acceptable. I just think it should be the last thing you do instead of the first. If you are Twitter or Facebook caching in the middle is a must, pages are just too unique. If you have some newspapper site, why add the complexity to your app when there are great solutions on the front and back ends written by really smart developers.