IIS7 Integrated vs Classic Pipeline - which uses more ASP.NET threads?

前端 未结 2 1828
栀梦
栀梦 2021-02-12 11:10

With integrated pipeline, all requests are passed through ASP.NET, including images, CSS.

Whereas, in classic pipeline, only requests for ASPX pages are by default passe

相关标签:
2条回答
  • 2021-02-12 11:18

    If you look at machine.config, web.config and applicationHost.config in IIS 7, you can see that the way static content is served does not change when you switch between classic and integrated pipeline. The only thing that changes is whether requests mapped to asp.net pass through a managed module or the native ISAPI filter module.

    The only thing that could affect performance is if you modify the default settings for authorization modules and any custom modules you've added to execute when handling requests for static content. And even here the overhead is probably negligible.

    Therefore a more appropriate benchmark would be IIS 6 vs IIS 7, and I suspect IIS 7 would be the clear winner.

    0 讨论(0)
  • 2021-02-12 11:37

    I'd say you're right, but I' look at it from another perspective.

    Do you need to process the requests for the non-ASPX pages ? For example, to log them, or to forbid the response if some condition is not met.

    If you need this processing capability, use integrated pipeline. If you don't, use the classic pipeline.

    0 讨论(0)
提交回复
热议问题