Dane Balia
Dane Balia

Reputation: 5367

Concurrent Connections from Browser To IIS

I'm running a website that is ASP.NET/JQuery and on IIS 7.0. I've created a web garden with 10 worker threads and a Out of Process (Sql Server) to handle session. I've heard many people suggest that Web Gardens only solve certain problems, being CPU Bottlenecks and the other concurrency.

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)? 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.

Thanks

Upvotes: 2

Views: 2308

Answers (1)

dezfowler
dezfowler

Reputation: 1258

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.

From this MSDN page in the section entitled "Concurrent Requests and Session State":

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. The second request executes only after the first request is finished

Upvotes: 5

Related Questions