News Feed
Sections




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

James Fuller:
Simply scale with Nginx, Memcached, PHP-FPM and APC
February 04, 2013 @ 10:46:01

James Fuller has posted a guide to scaling your web application using the nginx web server, memcached, PHP-FPM and APC caching.

We sell an educational product that serves a predictable 15,000 requests per minute for 10+ hours/day, every day. Instead of Apache, we use nginx with PHP-FPM to handle this traffic. This is becoming a very popular setup for many companies with non-trivial traffic, but I have also found success with it in my small 256MB Ram VPS. For various reasons, nginx does a better job with memory and concurrent connection handling than Apache. In this post, I want to talk about some of the reasons you might want to go with this setup.

He talks about some of the efficiency gains that memcache and nginx can give you pretty easily and some of the common uses for nginx, including using it as a reverse proxy. He talks some about Apache's typical request handling and shows the difference between that and how nginx does its "never block, finish fast" handling. He fits in the other pieces - PHP-FPM, memcached and APC - showing how each of them offers their own types of performance gains for different areas of the application.

0 comments voice your opinion now!
scale platform nginx memcached phpfpm apc cache


blog comments powered by Disqus

Similar Posts

Master Zend Framework: Easy Cache Configuration With StorageCacheAbstractServiceFactory

Zend Developer Zone: Zend Platform Performance Tuning on IBM i

Vance Lucas' Blog: Practical Uses for PHP 5.3 Closures

Rob Allen: Caching your ZF2 merged configuration

Unravel the Music Blog: Partial-page caching with Memcached and PHP in 3 easy steps


Community Events





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


interview composer version tool introduction podcast symfony artisanfiles series framework community release voicesoftheelephpant opinion laravel library conference list security language

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