Parallel processing of concurrent AJAX requests in ASP.NET MVC

added by dpeterson
2/14/2012 4:16:08 PM

4 Kicks, 780 Views

If you develop web applications that relies on JavaScript to update the interface and you use several Ajax calls inside a single page, then you should know that all those calls are not executed in parallel on the server. On a default controller, each call to an action locks the user’s Session object for synchronization purposes, so even if you trigger three calls at once from the browser, these calls will get queued and executed one by one...


1 comments

vijayst
2/15/2012 9:30:28 AM
Interesting tip. When using controllers that have AJAX actions, I will remember to use read-only sessions, wherever possible.