The time I heard says that PHP is not very suitable for COMET (as you said yourself) because of the way web servers and PHP work, mainly because there is one process on the page, which means that if you want 200 users to connect to your server, you will need 200 processes (which can quickly become a problem for several hundred users).
Perhaps a solution to this problem would be to use nginx_http_push_module?
I have not tried it yet (yet?), But it may be exactly what we need ...
source
share