Sunday 13 January 2008

Use local scope to improve performance

Full article
IIS introduced the concept of Internet Server API filters that were used to enhance IIS applications with custom features such as enhanced processing of Http requests. These ISAPI filters were loaded by IIS when it started up and would remain in memory and process all incoming Http requests. While this was a powerful feature, writing ISAPI filters wasn’t exactly simple. This required knowledge of C++ and multithreaded programming and since these DLLs were loaded into the IIS address space, debugging filters was not simple. Further, since the DLLs were loaded into the IIS address space, it was possible for a filter to bring IIS down in the event of a crash. The .NET framework takes the concept of ISAPI filters one step further by introducing Http Handlers which are custom components that process Http requests. In this article we will cover some of the basic principles of Http Handlers and write custom Http Handlers to customize the processing of some Http requests.

No comments: