Background
I have an issue where I am hitting my method with very high load. The load is so high that it seems that it is causing resuming of await
to have scheduling issues.
Basically, I was calling await httpClient.PostAsync(url, content);
. But because I was hitting it so fast (multiple threads), I eventually got very long wait times on the client (the service was still responding very fast). From what I can see, this wait time was due to stress of getting 10s of thousands of resuming awaits
scheduled on a thread.
Question
If I call httpClient.PostAsync(url, content).Result
will that still result in a scheduled resuming of the remaining code, or will it really execute synchronously?