使用signalr时,IIS是否有连接限制 [英] While using signalr, will there be any connection limits on IIS

查看:27
本文介绍了使用signalr时,IIS是否有连接限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近几天一直在研究 SignalR.使用它,我创建了一个管理仪表板来获取有关数据库表的实时信息.基本上这个表由来自各种应用程序的不同用户填充.它已经很好地出来了.只有当客户端 Broswer 和 WebServer 之间存在持久连接时,这些更新才可能.在生产环境中部署此应用之前,我几乎没有怀疑.

I have been looking at SignalR from last few days. Using this I have created an Admin Dashboard to get realtime information about a database table. Basically this table gets populated by may different users from various applications. It has come out well. These updates are possible only when there is persistent connection between client Broswer and WebServer. I have few doubts before deploying this app in production.

我知道 SignalR 首先检查 WebSockets,然后根据客户端和服务器之间的可用性查找长轮询.无论它使用什么,客户端和服务器之间都会有一个连接打开.

I understand that SignalR first checks WebSockets then looks for Long Polling based on there availability between client and server. No matter what it uses, there will be a connection open between client and server.

我的问题是在更多用户连接到同一服务器(例如同时连接 100,000 个管理员)的情况下,它的性能如何.IIS 对它一次可以打开的持久连接的数量是否有任何限制?如果是这样,我们可以将其配置为最大值以及该值是多少.

My question is how does it perform in scenario where more users are connected to the same server for example 100,000 admins are connected at same time. Does IIS has any limitations on number of persistent connections it can open at one point? If so can we configure to that to max value and what wud be that value.

对不起,如果是菜鸟问题

Sorry if it is rookie question

ASP.NET MVC3 &IIS 7 用于开发.

ASP.NET MVC3 & IIS 7 are used for development.

推荐答案

您应该查看 性能部分 GitHub 上的 SignalR Wiki.这为以下方面提供了一些非常好的指导:

You should review the Performance Section of the SignalR Wiki on GitHub. This provides some really good guidance for the following:

  • IIS 配置 - 每个应用程序的最大并发请求数
  • ASP.NET 配置 - 最大并发请求数 &请求队列限制

此外,它还说明了在执行应用程序负载测试时要监控的关键性能计数器.您应该执行哪种 IMO 以真正了解您的应用程序将如何执行并根据您的特定场景进行必要的调整.

Additionally, it states the key Peformance Counters to monitor when performing load testing of your application. Which IMO you should do to truly have an understanding of how your application is going to perform and make adjustments as necessary for your specific scenario.

最后,有一个链接到 Crank 推荐使用 SignalR 生成客户端负载的工具.

Finally, there is a link to Crank the recommended tool for generating client load with SignalR.

更新:曲柄链接现在是最新的.

Update: Link to Crank is now current.

这篇关于使用signalr时,IIS是否有连接限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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