ASP.NET 的 Comet 实现? [英] Comet implementation for ASP.NET?

查看:34
本文介绍了ASP.NET 的 Comet 实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找在浏览器中实现类似 gmail 的消息传递的方法,并到达了 彗星 概念.但是,我一直无法找到一个好的 .NET 实现来允许我在 IIS 中执行此操作(我们的应用程序是用 ASP.NET 2.0 编写的).

I've been looking at ways to implement gmail-like messaging inside a browser, and arrived at the Comet concept. However, I haven't been able to find a good .NET implementation that allows me to do this within IIS (our application is written in ASP.NET 2.0).

我找到的(或可以想到的)解决方案需要为每个用户留下一个正在运行的线程 - 这样它就可以在他收到消息后向他返回响应.当然,这根本无法扩展.

The solutions I found (or could think of, for that matter) require leaving a running thread per user - so that it could return a response to him once he gets a message. This doesn't scale at all, of course.

所以我的问题是 - 您是否知道 Comet 的 ASP.NET 实现以不同的方式工作?这甚至可能与 IIS 一起使用吗?

So my question is - do you know of an ASP.NET implementation for Comet that works in a different way? Is that even possible with IIS?

推荐答案

由于 Comet 的持久连接性,Comet 很难使用 IIS 进行扩展,但现在有一个团队正在研究 Comet 方案.另请查看 Aaron Lerch 的博客因为我相信他在 ASP.NET 中做了一些早期的 Comet 工作.

Comet is challenging to scale with IIS because of comet's persistent connectivity, but there is a team looking at Comet scenarios now. Also look at Aaron Lerch's blog as I believe he's done some early Comet work in ASP.NET.

这篇关于ASP.NET 的 Comet 实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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