AJAX Comet - Microsoft 是否正在开发或支持任何解决方案以使其可扩展?
我注意到很多问题和文章都在谈论 ajax comet。我还发现了一些使其“可扩展”的链接,因为其中一些帖子讨论了它如何无法通过 ASP.Net 进行扩展。我想知道 Microsoft 是否有他们正在开发的解决方案,或者是否已经推出了免费的 ASP.Net AJAX Comet 解决方案。
作为一个附带问题,我想知道这一点,因为 Microsoft.NET 4.5 谈论了 WebSockets,这似乎是比 AJAX Comet“更好”的解决方案?或者我在这一点上错了,它们不是竞争技术?
I notice a lot of questions and articles talking about ajax comet. I also found some links to make it "scalable" since some of those posts talk about how it isn't that scalable with ASP.Net. I'm wondering if Microsoft has a solution they're working on or that is out that addresses an AJAX Comet solution for ASP.Net that is free.
As a side question, I'm wondering this because Microsoft.NET 4.5 talks about WebSockets, which seems to be a "better" solution than AJAX Comet? Or am I wrong on this one and they aren't competing technologies?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Microsoft 工作的 Scott Hanselmann 最近发表了有关 SignalR 的博客。 SignalR 是一个用于 ASP.NET 的异步信号库,Scott 的团队正在致力于帮助构建实时多用户 Web 应用程序。
Scott 在评论中提到,如果人们喜欢它并使用它,这可能会成为 ASP.NET 的核心部分。
这里有一个很好的教程,将 SignalR 与 ASP.NET MVC 3 一起使用:
http://sergiotapia.com /2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection-websites/
Comet 是一个总称术语,有许多“Comet 服务器”(见下文)在可能的情况下使用 WebSocket 作为传输机制。 Comet 服务器不仅仅使用 AJAX、XHR Long-Polling、Forever-Frame 等。它们现在使用 WebSockets 并在需要时回退到其他传输机制。
以下是一些使用 WebSocket 的“Comet 服务器”:
Scott Hanselmann who works for Microsoft recently blogged about SignalR. SignalR is an asynchronous signaling library for ASP.NET that Scott's team is working on to help build real-time multi-user web application.
In the comments Scott mentions that this may become a core part of ASP.NET if people like it and use it.
There's a good tutorial using SignalR with ASP.NET MVC 3 here:
http://sergiotapia.com/2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection-websites/
Comet is an umbrella term and there are many "Comet Servers" (see below) that use WebSockets as the transport mechanism when possible. Comet servers don't just use AJAX, XHR Long-Polling, Forever-Frame etc. They now use WebSockets and fallback to other transport mechanisms where required.
Here are just some of the "Comet Servers" that use WebSockets: