Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe mysql_pconnect allows you to keep connections open across requests: 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.



You 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.


I'm not disagreeing with you on the details, but don't both of those things mean it is stateful?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: