Tuesday, September 1, 2009

How to improve the performance of ASP.NET MVC web application


In this article, i will examine how you can improve the performance of an ASP.NET MVC application by taking advantage of the following components.

  1. Implementing Caching
  2. Implementing HTTP Compression
  3. Implementing JQuery UI library with Google Hosted Ajax Libraries
  4. By combining scripts and other resources
  5. Deploying production code in release mode
  6. Remove default HTTP modules in ASP.NET

Implementing Caching

The easiest way to implement cache on MVC view is to add an [OutputCache] attribute to either an individual controller action or an entire controller class. Here is a controller action GetWeather() that will be cached for 15 seconds.

See full detail: http://www.codeproject.com/KB/aspnet/How_to_improve_performanc.aspx