O'Reilly logo

ASP.NET Site Performance Secrets by Matt Perdeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we focused on converting synchronous code, which blocks the current thread, to asynchronous code, that releases the thread while waiting for an off-box operation to complete. This makes more threads available to IIS to process requests.

We first saw how to convert synchronous access of a web service to asynchronous access. Then we looked at the more complex case of asynchronously accessing a database, including an asynchronous data layer, and then applied this to both, a regular web page and a generic handler. We then learned how to write a file asynchronously.

This chapter also discussed configuring the server in relation to the threads it uses to process requests, and wrapped up by looking at changing page timeouts to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required