服务器推送技术(又名“COMET”、“http 服务器推送”、“websockets”)

发布于 2024-11-04 17:38:18 字数 686 浏览 1 评论 0原文

MS/Azure 在服务器推送技术方面提供什么?我的猜测是,目前还没有针对此的 RTM 产品。我认为该技术面向 Microsoft 的状态如下:

  • WCF:提供 TCP 双工,但需要两个 TCP 套接字(其中一个在客户端上打开)。因此,这不是 COMET(并且无法通过防火墙工作)
  • WebSockets:可从 Microsoft 的 Html 5 Labs 获得,但是 ASP.NET仍处于开发阶段
  • :有一个“MS 代码示例”提供“反向 ajax"。看起来很新。这是最接近 MS 推荐的方法吗?

我还看到了有关“工作者角色通信”的 Azure 讨论,但这并不符合条件,因为它需要“80 和 443 以外的端口”。

那么这仍然是一个“等等看”的话题,还是我遗漏了什么?

What does MS/Azure offer in the way of server push technology? My guess is that there is not, as yet, an RTM offering for this. The Microsoft-oriented status of this technology, I believe is as follows:

  • WCF: offers TCP duplexing, but requires two TCP sockets (where one is opened on the client). Ergo this is not COMET (and won't work through firewalls)
  • WebSockets: Available from Microsoft's Html 5 Labs, but still very much under development
  • ASP.NET: There is a "MS code samples" offering of "reverse ajax". It looks very new. Is this the closest thing to a MS recommended approach?

I also see an Azure discussion of "Worker Role Communication", but that does not qualify since it requires ports "other than 80 and 443."

So is this still a "wait and see" topic, or is there something I'm missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

飘逸的'云 2024-11-11 17:38:18

看看WebSync;它不是来自微软本身,而是基于微软技术的comet解决方案。

(免责声明:我在冰山工作)。

Take a look at WebSync; it's not from Microsoft itself, but it's a solution for comet based on Microsoft technology.

(Disclaimer: I work @ Frozen Mountain).

断舍离 2024-11-11 17:38:18

微软目前正在研究它,你可以从这里下载原型:
http://html5labs.interoperabilitybridges.com/prototypes/websockets/websockets/info

编辑:
抱歉,刚刚看到您实际上已经看到了。话虽如此,没有理由不尝试原型,它可能比许多“生产”就绪的 OSS 项目更完整;)

Microsoft are currently working on it, you can download a prototype from here:
http://html5labs.interoperabilitybridges.com/prototypes/websockets/websockets/info

EDIT:
Sorry just saw you've actually seen that already. Having said that, there's no reason to not try the prototype, heck it's probably more complete than a lot of "production" ready OSS projects ;)

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