哪一款是最好的 COMET 服务器?
我正在寻找一个 COMET 服务器,我想将消息从服务器专门推送给一些具有某些 id 的用户,我正在使用 php,并且我正在寻找一个良好且简单的 COMET 服务器。
你能告诉我哪一个最好吗?
I'm looking for a COMET server, i want to push messages from the server specifically to some users with some id's, i'm using php and i'm looking for a good and easy COMET server.
Could you tell me which one is the best?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是主观的,没有更多细节。我们研究了 APE、Node.js 实现和其他实现,它们的优点/缺点都略有不同。
如果您只对功能感兴趣,不想发展能力或承担管理自己的 Comet 服务器的责任,那么可以使用相当成熟的“Comet”即服务产品。我在最近的一个项目中使用了 Pusher,它提供了我们需要的一切,可能是一个很好的起点。
This is subjective without more details. We've looked at APE, Node.js implementations, and others- all offer slightly different strengths / weaknesses.
If you're only interested in the functionality and don't want to develop the competencies or own the responsibilities of managing your own comet server there are fairly mature 'Comet' as a service offerings. I've used Pusher on a recent project, it delivered everything we needed and might be a good place to start.
Comet 服务器的选择取决于您正在开发的应用程序的类型。如果您计划将来将应用程序移植到移动平台,那么您可以选择 WebSync。它使用简单,提供了一个简单的 API,供您从 javascript 客户端、PHP、iOS 客户端以及 .NET 客户端进行发布。此外,您还可以将 Websync 用作服务器或按需使用。但问题是,WebSync 的免费版本仅允许最多 10 个并发客户端。如果您想要更多,则必须购买。
我还对 APE 进行了一些研究。这是完全开源的,所有代码都必须用 Javascript 编写,这在某些情况下可能有点不方便。根据您的需求做出选择
The choice of the comet server depends on the kind of app you are developing. If you have plans of porting your app to mobile platforms in the future , then you can go for WebSync. This is simple to use, provides a simple API for you to publish from a javascript client, from PHP, from iOS client and also from a .NET client. Also, you can use Websync either as a server or on-demand. But, the thing is, WebSync's free version allows only upto 10 concurrent clients. If you want more, you will have to purchase.
I have also looked a little bit into APE. This is completely open source and all your code has to be written in Javascript which may be a little inconvenient in some cases. Make your choice depending on your needs
我强烈推荐你使用APE
http://www.ape-project.org/
原因:
http://www.ape-project.org/ajax-push.html
I highly recommend you to use APE
http://www.ape-project.org/
Reasons :
http://www.ape-project.org/ajax-push.html