locked
Single cache vs multiple caches RRS feed

  • Question

  • I am developing an application that has multiple asp.net portals and back-end windows services to perform various functions.   A design question that I have run into is this:  Should I have one cache or multiple caches?  Either approach will work so the real underlying question is one of efficiency, reliability.  I can create one single cache and have all the different applications write & read from the same cache. Or, I can create different caches (based on different business objects being stored; for example, a posting cache might store the postings, a profile cache might store the profiles, etc etc.). 

    Any advice?

    - Bill

    Thursday, April 23, 2009 4:33 PM

Answers


  • Bill,
    You may use multiple caches if you dont want different unrelated applications accessing the data from the same cache. But do not create too many named caches i.e. limit the number of caches to a small number. Also avoid creation/deletion of the named caches dynamically (during run-time).

    Thanks
    Shankar
    Friday, April 24, 2009 5:36 AM