title: Web Api - Really slow response when performing few requests at the same time
body: <p>I have a Web API C# project. I noticed that when sending few requests together (few can be even 7-10) to the controller, some of the requests are taking very long time (5-7 seconds).  When sending each request separately, each request takes less than 200ms.  I'm sending requests to my localhost (dev environment), so there shouldn't be any latency or heavy usage on the server.</p>
  
  <p>I added this code inside global.asax in order to view how long it takes for each request.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//Global asax
  
   private Dictionary&lt;string, StopWatch&gt; urlTimers = new Dictionary&lt;string, StopWatch&gt;();
      void Application_BeginRequest(object sender, EventArgs e)
      {
          HttpContextBase currentContext = new HttpContextWrapper(HttpContext.Current);
          var requestedUrl = currentContext.Request.RequestContext.HttpContext.Request.RawUrl;
          var urlWithoutQueryParams = requestedUrl.Split('?')[0];
          if (urlWithoutQueryParams.StartsWith("/controller"))
          {
              var stopWatch = new StopWatch();
              stopWatch.Start(urlWithoutQueryParams);
              urlTimers[urlWithoutQueryParams] = stopWatch;
          }
  
       
      }
  
      void Application_EndRequest(object sender, EventArgs e)
      {
          HttpContextBase currentContext = new HttpContextWrapper(HttpContext.Current);
          var requestedUrl = currentContext.Request.RequestContext.HttpContext.Request.RawUrl;
          var urlWithoutQueryParams = requestedUrl.Split('?')[0];
          if (urlWithoutQueryParams.StartsWith("/controller"))
          {
              var stopWatch = urlTimers[urlWithoutQueryParams];
              if (stopWatch != null)
              {
                  stopWatch.Stop();
              }
          }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When submitting 10 requests using fiddler I receive the following </p>
  
  <p><a href="https://i.stack.imgur.com/cVwhR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cVwhR.png" alt="enter image description here"></a></p>
  
  <p>All requests return a tiny amount of data, so it also shouldn't be the problem. 
  It doesn't make sense that 10 requests take so much time. Any help will be appreciated.</p>