How can we keep alive (it's put in the pool) on a PHP client with our other server (like: Korba server, thrift server, ...)?
Can I do this? PHP is a script language, a PHP server returns a thread for each request and completes this thread after fully processing. This means, after that anything will be lost so that I can not keep anything for a long time (in this case, I need a connection pool shop to keep connections).
We knew if our client is a Java, C #, C / C ++ ... we can use long-term connections for multi-threads For self connection pool (or other names) can. Otherwise, if the server which is connected to the client themselves, MySQL, SQL Server, MongoDB ... we can set "persistence" (or otherwise), because these servers will have connection pools for their customer Support. Unknowingly, in my case, My client is PHP and my server has to go with savings to connect with them .
Can you advise me? Thanks for your help!
Comments
Post a Comment