1

I have some questions regarding my usage of async - await functionality particularly in ADO.NET.

If I understand correctly, the correct usage will allow my web server to be more responsive to incoming requests because the threads will no longer be sitting around waiting for the e.g. SQL Server query to finish its work. I can get full async behavior right down to the ADO.NET data reader through the asyn API there.

My question is that if my primary load before going async was the database would it be far fetched to assume that because there are now more free threads to handle incoming requests, these requests would put more strain to my database than before?

1 Answer 1

2

Assuming that you have more requests to handle - yes. But this would mean the database was overloaded and requests were piling up waiting.

Assuming your database did cope with the load (which does not magically increase just because you ue async) then obviously not. You just need less front end servers now ;)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.