Frequently Asked Questions

The following Frequently Asked Questions, answered by the authors of this book, are designed to both measure your understanding of the concepts presented in this chapter and to assist you with real-life implementation of these concepts. To have your questions about this chapter answered by the author, browse to www.syngress.com/solutions and click on the "Ask the Author" form.

I have been asked to migrate an application from ASP to ASP.NET. In the ASP application, several third-party utilities have been used to provide for caching. Should I use these or use ASP.NET's internal caching?

Use ASP.NET's caching when possible.With automatic scavenging features and integrated memory management, ASP.NET provides a more tightly inte-

grated caching system than existing third-party utilities

Q: Within my application, there is a table populated with data from several different databases. How could I best implement caching in order to share this populated table between multiple pages of my application?

A: Use fragment caching to cache a user control that builds your table. Items stored in the cache are accessible throughout the application.

Q: I am concerned about the use of memory on my server. Prior to implementing caching, the memory utilization of the system was fairly low, but

after adding the caching features to every page of my application, the memory utilization has gone up quite a bit. Is it possible to add so many items to the cache that I begin to run into a lack of memory resources?

A: This is possible if all of your items are cached using data caching with the parameters set to never remove the data from cache. However, by caching any data without this parameter opens the cached data up to be removed from the cache if the system becomes low on resources.

Q: Which is the overall best method of caching?

A: There is no "best" method. Each of the different caching options apply under different circumstances, and all of them provide an overall application performance increase when used properly.

0 0

Post a comment