I have a Web API Controller with the following method inside:
public string Tester()
{
Thread.Sleep(2000);
return "OK";
}
When I call it 10 times (Using Fiddler), I expect all 10 calls to return after ~ 2 seconds. However the calls return after 2,4,8...20 seconds, respectively.
What is blocking it from running concurrently? How do I fix that?
Do regular Controllers behave the same as web-api controllers?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…