开发者

nginx or apache for comet based PHP application?

开发者 https://www.devze.com 2023-01-12 19:25 出处:网络
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)开发者_JAVA百科 or something else would be better?I would recomm

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)开发者_JAVA百科 or something else would be better?


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)


I'm building a comet app too, i guess apache + php (a classic) and APE with comet server beside may be a great solution

ape-project.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消