在Java或C#为长轮询/彗星的最佳选择? [英] Best choice for Long-polling / Comet in Java or C#?

查看:499
本文介绍了在Java或C#为长轮询/彗星的最佳选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这本机服务器是最好的,在您看来,实现长轮询/ 彗星?第一个目标应用是聊天,但会有其他的实现 - 我们基本上需要推到客户端的能力。

Which native server is best, in your opinion, to implement long-polling / Comet? The first target application is chat, but there will be other implementations - we basically need push-to-client capabilities.

我限制了答案C#或Java,因为这两种技术都在我的工作场所占主导地位。要求是像往常一样:性能,易于部署/编程,定制,...

I'm limiting the answers to C# or Java because these two technologies are dominant at my workplace. The requirements are as usual: performance, ease of deployment/programming, customization, ...

推荐答案

我刚才看到我这篇文章从昨天斯科特Hanselman的。它看起来非常有前途。

I just saw this blogpost from Scott Hanselman yesterday. It looks very promising.

的http:/ /www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx

设有称为SignalR一个开源的产品,可通过的NuGet。

It features an opensource product called SignalR which is available through nuget.

您可以找到源的例子聊天应用@ github上

You can find an example chat application in the sources @ github

https://github.com/SignalR/SignalR

这篇关于在Java或C#为长轮询/彗星的最佳选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆