Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:14:31+00:00 2026-06-12T04:14:31+00:00

I have been reading more about C#’s new async keyword and support for it

  • 0

I have been reading more about C#’s new async keyword and support for it in .NET 4.5 and I’m looking for some help in thinking about it the ‘right way.’

My first thought was that I could improve the responsiveness of my sites by doing things I don’t need to wait for (like sending email, logging stuff, etc) asynchronously. This is something I’d just like to fire-and-forget and not make my client wait for.

But then I read about the new async versions of the SQL here and I get confused. Reading from the DB is something I have to wait for – I need the data – and I cannot proceed until it’s done. Does that mean I can’t use this?

Or, does it mean I’m making my request-handling more IIS-friendly by not blocking on the SQL calls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:14:33+00:00Added an answer on June 12, 2026 at 4:14 am

    The answer to these things is always “it depends.”

    In your particular case, where you’re serving requests from IIS, you absolutely want to take advantage of this where you can, but you have to do it in a way that benefits IIS.

    For example, when a client makes a request to an ASP.NET page (I assume this is the case, with question asking about IIS and .NET, that’s really the only option), the server has spun up a thread to handle your request. Of course, if there are many requests, then it’s going to take a lot of threads, possibly more than the server can handle, which means that some requests have to wait while others are being processed.

    If in your thread (which is blocking other threads on the server) you have to wait for other work elsewhere, then it doesn’t make much sense to block the other threads while you wait for a response (from a web service, a database, etc). It would be better to give the server the thread back and then tell the server when you’re ready to do work again and offer up a response.

    To this end, ASP.NET has mechanisms to let the server know that it can do other stuff while you’re waiting for a response.

    ASP.NET WebForms has asynchronous pages (which I personally find a little convoluted) while ASP.NET MVC has asynchronous methods in version 4 (which fits into the Task-based asynchronous pattern much better).

    That said, it should be noted that if you have other work that has to be done independently while waiting for the response, then there’s no reason to yield the thread back to the server, just do your work and when you get to the point where you can’t go any further, yield control back.

    Whatever you do though, don’t wait on the result from the task; you’re blocking the server from using that thread for other uses while you’re doing nothing with it but waiting. This is probably the single biggest hindrance to scalability there is, and learning where you don’t need to hold onto server resources is one of the keys to writing highly scalable systems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading about making ajax heavy applications more search engine friendly: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
Have been reading about async and tasks and been attempting to convert the CopyFileEx
I have been reading about MVP, MVVM and have used asp.net MVC in couple
Recently I have been reading more and more about people using custom attributes in
I have been reading more lately about the efficiency of the different selector engines.
I have been trying to find some more information about the next Microsoft Dynamics
I am relatively new to using TDD and have been reading about mocking objects
I have been reading conflicting information about the use of #define macros in iOS
I have been reading a lot about QR codes and how the code itself
I have been reading about threadpools. A number of sites say that the default

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.