轨道彗星服务器和 stomp 的 PHP 代码

发布于 2024-08-07 03:46:27 字数 190 浏览 3 评论 0原文

经过长时间搜索彗星服务器,我选择了轨道彗星服务器。

我必须使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以歌曲疗慰 2024-08-14 03:46:27

不幸的是,这是我在 PHP 中努力解决的一个问题,特别是对于同类使用场景。到目前为止,我提出的唯一可能的解决方案是:

1)实施另一个彗星服务器,然后在轨道上运行,并在构建时考虑到这种负载,着眼于使用云来快速启动服务器。

2)使用稳定的消息传递结构,例如已经在 J​​ava 中实现的消息传递结构,以提高性能,同时必须使用我自己的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文