During the design phase of developing an ASP.NET application it is vital developers utilize the ASP.NET Cache feature. A good “rule of thumb” when deciding when to use the caching feature is when data, pages, parts of pages are used more than once. More
specifically any data that is general in nature and does not change depending on specific user requests is a perfect scenario for caching. This saves on time and overhead for collecting and creating reusable objects. However, it is possible to use too much
caching. For example, on a 32-bit application process you do not want to use more than 800MB of private bytes. This is an important consideration when designing your application to avoid those pesky “out of memory” errors. Use but do not overuse. [more]
There are three types of cache in the ASP.NET framework to consider:
Output Caching: This caches the output of an entire page and can be called for future requests without re-executing
Fragment Caching: This is for caching parts of a page to be reused even as other requests are generating dynamically
Data Caching: Caches for objects to be re-used instead of re-creating.
With a little time spent on planning during design meetings can save you a lot of “head scratching” down the road. The ASP.NET Cache API makes implementing caching easy for programmers and the benefits gained in terms of performance will save on support
costs in the future.
WildMetrix - A POWERFUL SIXTH SENSE
__________________
www.wilmetrix.com
blog.ascendview.com
None
0 Points
1 Post
To Cache or Not to Cache...That is the Question
Apr 04, 2009 02:26 PM|WildMetrix|LINK
During the design phase of developing an ASP.NET application it is vital developers utilize the ASP.NET Cache feature. A good “rule of thumb” when deciding when to use the caching feature is when data, pages, parts of pages are used more than once. More specifically any data that is general in nature and does not change depending on specific user requests is a perfect scenario for caching. This saves on time and overhead for collecting and creating reusable objects. However, it is possible to use too much caching. For example, on a 32-bit application process you do not want to use more than 800MB of private bytes. This is an important consideration when designing your application to avoid those pesky “out of memory” errors. Use but do not overuse. [more]
There are three types of cache in the ASP.NET framework to consider:
With a little time spent on planning during design meetings can save you a lot of “head scratching” down the road. The ASP.NET Cache API makes implementing caching easy for programmers and the benefits gained in terms of performance will save on support costs in the future.
__________________
www.wilmetrix.com
blog.ascendview.com