Routing vs. Url Rewrite (IIS7) Performance

I was wondering if there is a performance difference between the two approaches? Any good articles on this?

+7
url-rewriting url-routing
source share
1 answer

Let's think about the difference in what actually happens:

URL rewriting:

  • IIS receives the request and passes it to the unmanaged module
  • The module matches the request with a set of templates and returns a transformation
  • IIS passes the return transformation to the ASP.NET module and starts the request life cycle

Routing:

  • IIS receives the request and passes it to ASP.NET
  • ASP.NET maps the request to a set of templates and defines an entry point for processing the request
  • ASP.NET runs the request life cycle on this handler.

I would say that they are so close that it will be difficult for you to find a situation where the difference is noticeable.

+7
source share

All Articles