轨道彗星服务器和 stomp 的 PHP 代码
经过长时间搜索彗星服务器,我选择了轨道彗星服务器。
我必须使用 Orbited Comet Server 和 Stomp PHP 客户端在 PHP 中构建一个实时聊天系统。
它不处理数百或数千个同时连接。
我该如何解决这个问题?是否有任何其他库可以添加来解决这个问题?
谢谢。
我的问候
After long searching of comet server, i choose orbited comet server.
I have to build a real-time chat system in PHP using Orbited Comet Server and Stomp PHP client.
It does not handle hundreds or thousands of simultaneous connections.
How could i solve this problem? Is there any other library to add for fix this problem?
Thanks.
My Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这是我在 PHP 中努力解决的一个问题,特别是对于同类使用场景。到目前为止,我提出的唯一可能的解决方案是:
1)实施另一个彗星服务器,然后在轨道上运行,并在构建时考虑到这种负载,着眼于使用云来快速启动服务器。
2)使用稳定的消息传递结构,例如已经在 Java 中实现的消息传递结构,以提高性能,同时必须使用我自己的 php 库正确处理它。
这两种解决方案都有各自的优点和缺点,但我觉得最终,用 PHP 实现这样的服务器,或者使用我所知道的现有 oss 解决方案,对于大容量通信来说是徒劳的。
Unfortunately this is a problem I have wrestled with for quite a while in PHP, specifically for the same kind of usage scenario. The only possible solutions I have come up with so far are these:
1) Implement another comet server other then orbited, and build it with that kind of load in mind, with an eye toward using the cloud for quick server standup.
2) using a stable messaging fabric such as the ones already implemented in Java in order to add to the performance side of things, while having to handle it properly with my own php library.
Both of these solutions have their own ups and downs, but I feel that in the end, implementing such a server in PHP, or with the existing oss solutions that I know of, would be futile for high volume communications.