3 ms·
I believe mysql_pconnect allows you to keep connections open across requests: http://php.net/mysql_pconnect http://php.net/mysql_pconnect Additionally it is de
by trashcan 10y ago
I believe mysql_pconnect allows you to keep connections open across requests: http://php.net/mysql_pconnect http://php.net/mysql_pconnect
Additionally it is definitely not stateless, the session cache persists between requests as well. You can just load balance between 20 php-fpm instances without moving the session cache to something shared.
- CaveTech 10y agoYou can do persistent connections but it only applies to the same child process and you don't have fine grain control over this process if you choose to use it. Session cache is stored on disk.
- trashcan 10y agoI'm not disagreeing with you on the details, but don't both of those things mean it is stateful?