I am building a PHP comet based application. Which web server should I use in the backend? Apache / nginx (this is what most forums say) or something else would be better?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend not using PHP at all for this purpose. PHP is synchronous, therefore every open comet connection will block a PHP process (or Apache process if mod_php). Here an asynchronous language shall be used, JavaScript for example. (See Node.JS. If you are using comet for a chat, have a look at node_chat)