I have an MVC5 - application which has multiple Controllers. These Controllers usually return an ActionResult (containing Json-Data)
Now I got two problems:
First: These Operations take very long
Second: I need to use a Session, so the usual hints disabling Sessionstate do not work.
Now a single call blocks a following call.
Is there a way to get around this issue?
Is this blocking Per-IP or gets everyone blocked?
(I plan to host that application on Azure; Maybe that could be a road to a possible solution to use "something" different than the Session, if needed)
(Update): To make a bit clearer what the problem is: I am trying to get around the following issue but still need a Session (or something simular):
ASP.NET MVC 5 concurrent requests are queued even with disabled Session
Example Controller Code:
[RoutePrefix("api/user")]
public class UserController:Controller {
[Route("getname/{userid}")]
public ActionResult GetName(int userid)
{
return Content(new User().GetById(userid)); // takes a very long time
}
}