开发者

Is there a long polling framework in PHP/Apache analagous to Tornado?

开发者 https://www.devze.com 2023-02-26 21:04 出处:网络
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 ey

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.

0

精彩评论

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