在IIS上的Ajax长轮询 [英] Ajax long-polling on IIS

查看:248
本文介绍了在IIS上的Ajax长轮询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  

可能重复:
  彗星实现ASP.NET?

我期待到做一个即时聊天网站,但在开始之前,已经遇到了一些问题。

首先,我们希望能够有多人在一个​​对话和多个会话在同一时间怎么回事。

之后做一些研究,很多人建议长轮询。可伸缩性听起来像一个问题,虽然,这似乎是每个用户都会有等待在服务器上的连接,每个连接使用它自己的线程。当有多个用户,这可能会导致性能问题。大多数时候,当我读到这一点,他们虽然被提到的Apache作为服务器。我会遇到同样的问题与IIS(6或7)?粗略地遇到了问题之前,有多少用户会IIS处理?

时长轮询与阿贾克斯在IIS上一个不错的选择创建一个即时聊天的网站还是有不同的服务器可以处理以更好的方式连接?有没有别的东西,我们应该寻找到?

解决方案

我觉得<一href="http://stackoverflow.com/questions/5735240/scaling-microsofts-asp-net-reverse-ajax-long-poll-$c$cplex-example">thread在这里挖成问题会好一点。具体而言,该线程链接到一个AJAX web聊天应用 例子P>

较长的答案是,你希望深入彗星编程来妥善处理这个问题。

Possible Duplicate:
Comet implementation for ASP.NET?

I am looking into making a real-time chat website, but have ran into a few questions before starting.

First off, we want to be able to have multiple people in one conversation and multiple conversations going on at the same time.

After doing some research, a lot of people suggested long-polling. Scalability sounds like a problem though, it seems like each user will have a connection waiting on the server and each connection uses its own thread. When there are multiple users this could cause performance problems. Most of the time when I read about this they were referring to Apache as the server though. Will I run into the same problem with IIS (6 or 7)? Roughly how many users could IIS handle before running into problems?

Is long-polling with ajax on IIS a good option for creating a real-time chat website or is there a different server that can handle the connections in a better way? Is there something else we should be looking into?

解决方案

I think the thread over here digs into the problem a bit better. Specifically, that thread links to MS's example of an AJAX web chat app

The longer answer is that you want to dig into COMET programming to handle this properly.

这篇关于在IIS上的Ajax长轮询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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