开发者

nginx or apache for comet based PHP application?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜