tbiro.com

Forums 
   HackPerfCounter
   RADPass
   SHEdit
   Toys
 
   Contact me
   My PGP Key
 

Use caching for your ASP.NET application.


One of the first things you should do before writing a line of application code is architect the application to exploit the ASP.NET Cache features to the maximum.

Rules to find candidates for caching:

  • data that can be used more than once
  • data that is general rather than specific to a given request or user
  • data that is specific to a user or a request, but is long lived
  • data that is expensive to create

Types of caching in an ASP.NET application:

  • Data Caching - storing data in memory for quick access
  • Page Output Caching - cache the output of a page so that the page does not need to be regernerated every time it is loaded
  • Partial Page Output Caching - cache individual objects in your web application

Finally, do not cache too much to reduce the chance of an out-of-memory error. To prevent this monitor the memory usage of your ASP.NET application.

Comments: tb@tbiro.com






View mys profile on LinkedIn