Looking at other people’s blogs, it is said that Unix socket is not so stable
unix socket is suitable for both nginx and php-fpm on the same machine
TCP is suitable for nginx and php-fpm not on the same machine
TCP communication also requires three handshakes
Production environment, if high availability is considered. There will be multiple nginx used with multiple php-fpm
I haven’t paid attention to the performance
Meaning that I have not taken care of this thing, it is all configured and used directly by nginx. It is a unix socket, right
unix socket is suitable for both nginx and php-fpm on the same machine
TCP is suitable for nginx and php-fpm not on the same machine
TCP communication also requires three handshakes
Production environment, if high availability is considered. There will be multiple nginx used with multiple php-fpm
I haven’t paid attention to the performance
Meaning that I have not taken care of this thing, it is all configured and used directly by nginx. It is a unix socket, right