Is there a long polling framework in PHP/Apache analagous to Tornado?
Is there something开发者_如何学C like the Tornado framework written in PHP or any examples of how to tie it (Tornado or another reliable framework) in to a site already built on PHP/MYSQL/Apache?
at eyeOS we have developed our entire long polling stack using php/mysql/apache.
We use mysql memory tables for message exchanging, and some tricks at php level.
eyeOS is open source so you can view/modify/reuse the code under the terms of the AGPL3 license.
The code is here:
https://code.eyeos.org/trunk/eyeos/system/Frameworks/NetSync/
And the js part:
https://code.eyeos.org/trunk/eyeos/extern/js/eyeos/netSync/
It is giving really good results in our demo server with hundreds of concurrent users.
However, this is a lightweight implementation, not sure if it will fit your needs.
精彩评论