Core principles to make performant PHP applications
Some core principles for 2013/2014 to performant PHP applications:
- Upgrade to PHP 5.5 with Zend OpCache or APC using PHP-PFM + Nginx
- Stay up to date with your framework + dependencies (using Composer)
- Optimize your session store to use signed cookies or database with caching
- Cache your database and web service access with Memcache, DBA or Redis
- Do blocking work in the background with queues and tasks using Resque or Gearman
- Use HTTP caching and a reverse proxy cache like Varnish
- Profile code with Xdebug + Webgrind and monitor production performance
Written by Gjero Krsteski
Related protips
2 Responses
Some more guidance on how to upgrade one's existing code and practices to the ones you listed would be super helpful :)
over 1 year ago
·
I would warmly suggest you this page http://www.phptherightway.com. There you can read about all above mentioned topics ;-)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#