Re:A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS
by miseg on Tuesday January 12, 2016 @11:23AM
(#10888255)
By caching, you mean like script execution caching that PHP accelerators give? https://en.wikipedia.org/wiki/List_of_PHP_accelerators
Am I right in thinking that such caching comes built-in with PHP 5.5+ ?
Re:A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS
by semerda on Tuesday January 12, 2016 @11:40AM
(#10888405)
Look at Varnish Cache https://www.varnish-cache.org/ and Google's PageSpeed module on the server. https://developers.google.com/speed/pagespeed/?hl=en
Re:A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS
by miseg on Tuesday January 12, 2016 @11:51AM
(#10888473)
Thanks. That's quite added complexity in my scenario, which I think I would avoid.
Re:A Beginner's Guide to Scaling to 11M+ Users on Amazon's AWS
by falcolas on Tuesday January 12, 2016 @01:26PM
(#10889258)
Nginx and Apache have built in caching which can usually be easily enabled, which while arguably not as fast as using Varnish (Nginx in particular will serve cached content from disk using sendfile, as opposed to Varnish's in-memory caching) are still faster than calling back into PHP.
More dynamic applications (like a commenting system) might feel better at 10-30 seconds of caching with expiration commands, but it will still help scale up significantly.