Nginx & php-fpm - Unix Socket or TCP/IP for fastcgi_pass?
I was always running Nginx in combination with PHP-FPM listening via TCP/IP (fastcgi_pass 127.0.0.1:9000;).
Then I tried to let it listen to a Unix Socket instead (fastcgi_pass unix:fastcgi.socket;). Even though the latter combination is often recommended for being generally faster, I do not see any significant boost in performance. I did not run any artificial test to be honest: It is just the impression that I have from observing a live website under some load with both combinations. Not only that the Unix Socket variation does not seem to be noticeable faster, the general server load is also higher compared to the TCP/IP solution. I have the impression that it adds around 0.3-0.5 to the load.
I wonder what your experiences with both solutions are: Maybe I just did something wrong so I am very much looking forward to your opinions...