Comment on Nginx 1.0.0 is outparentComments−chopsueyar15yA socket is probably faster.−justincormack15yNot really the bottleneck if you are running PHP. Linux optimises most of tcp out over the loopback device anyway.−treo15yI ran into a problem with a tcp connection to php-fpm just some weeks ago: The Server served requests at a rate of about 400req/s for some time without a single problem, until I ran out of useable ports. You won't have this problem with sockets.
Comments
A socket is probably faster.
Not really the bottleneck if you are running PHP. Linux optimises most of tcp out over the loopback device anyway.
I ran into a problem with a tcp connection to php-fpm just some weeks ago: The Server served requests at a rate of about 400req/s for some time without a single problem, until I ran out of useable ports. You won't have this problem with sockets.