简体   繁体   English

从浏览器到IIS的并发连接

[英]Concurrent Connections from Browser To IIS

I'm running a website that is ASP.NET/JQuery and on IIS 7.0. 我正在运行一个ASP.NET/JQuery并在IIS 7.0上的网站。 I've created a web garden with 10 worker threads and a Out of Process (Sql Server) to handle session. 我创建了一个带有10个工作线程和一个进程外(Sql Server)的Web花园来处理会话。 I've heard many people suggest that Web Gardens only solve certain problems, being CPU Bottlenecks and the other concurrency. 我听说许多人建议Web Gardens仅解决某些问题,即CPU瓶颈和其他并发问题。

The Website is one that has dynamic tabbing, and as such attempts to allow the user to multi-task. 该网站是一种具有动态制表符的网站,因此试图允许用户执行多任务。

Do Web Gardens allow multiple connections from one Browser (Single User)? Web Gardens是否允许一个浏览器(单个用户)进行多个连接? That is, if I open two tabs and issue a set of work (with server-side) code, will both requests be submitted or will there only be one connection with blocking, until the first request is completed. 也就是说,如果我打开两个选项卡并发布一组工作(带有服务器端)代码,则将同时提交两个请求或只有一个阻塞连接,直到第一个请求完成。

Of course in real life, I am seeing "blocking", when from what I understand Web Garden are too support concurrent connections. 当然,在现实生活中,当我从Web Garden了解到太支持并发连接时,就会看到“阻塞”。

Thanks 谢谢

The ASP.NET session is your point of contention here - with the in-process session the two browser tabs had separate sessions (which is probably a bad thing) but with the out-of-process session they are trying to access the same one. ASP.NET会话是您的争论点-在进程内会话中,两个浏览器选项卡具有单独的会话(这可能是一件坏事),但是在进程外会话中,它们试图访问同一会话。 。

From this MSDN page in the section entitled "Concurrent Requests and Session State": 此MSDN页面上的标题为“并发请求和会话状态”的部分中:

if two concurrent requests are made for the same session (by using the same SessionID value), the first request gets exclusive access to the session information. 如果对同一会话发出两个并发请求(通过使用相同的SessionID值),则第一个请求将获得对该会话信息的互斥访问。 The second request executes only after the first request is finished 第二个请求仅在第一个请求完成后执行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM