News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
PHP Performance Crash Course, Part 2 The Deep Dive
November 13, 2013 @ 10:56:33

DZone.com has posted the second part of a two-part series looking at increasing the performance of your PHP applications (part one is here). In this new post, he looks at a few topics including caching, session handling and asynchronous processing with Resque and Redis.

Ultimately, scalability is about the entire architecture, not some minor code optimizations. Often times people get this wrong and naively think they should focus on the edge cases. Solid architectural decisions like doing blocking work in the background via tasks, proactively caching expensive calls, and using a reverse proxy cache will get you much further than arguing about single quotes or double quotes.

He briefly recaps some of the "core principles" for optimizing applications and gets right into explaining the later ones on the list:

  • Optimize sessions through memcached handling
  • HTTP request/response caching
  • Caching Doctrine result sets
  • Caching the web service responses made with Guzzle
  • Handling asynchronous processing with Resque and Redis

He includes code and configuration examples for each item, helping to flesh them out a bit more. He also makes a recommendation of using something like AppDynamics to monitor the performance of your application (disclaimer: he works for them).

0 comments voice your opinion now!
performance crash course part2 series caching redis memcached session

Link: http://architects.dzone.com/articles/php-performance-crash-course-0

blog comments powered by Disqus

Similar Posts

Osedea Blog: Speeding up your ZF2 application

Zend Developer Zone: ZendCon Sessions Episode 040: Memcached: the better Memcache interface

Matthew Weier O'Phinney: Deployment with Zend Server (Part 8 of 8)

Joe Devon's Blog: How to get your talk accepted, experiences on the advisory board of Semtech & Zend

Christopher Jones' Blog: Statement caching bug fix to improve performance of OCI8 extension


Community Events

Don't see your event here?
Let us know!


series application example project yii2 symfony framework testing part2 laravel community language introduction podcast interview composer php7 opinion api list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework