Need architectural help to implement caching

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Girish

    Need architectural help to implement caching

    i have to implement caching in my application, can any one tell me
    about the good techniques to implement caching, or provide some
    architectural help , so i can use it to my application.

    i want to control caching dynamically according to my configuration.

    Thanks,






  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: Need architectural help to implement caching

    Girish wrote:
    i have to implement caching in my application, can any one tell me
    about the good techniques to implement caching, or provide some
    architectural help , so i can use it to my application.
    >
    i want to control caching dynamically according to my configuration.
    You figure out your requirements for the cache, check if there are
    a quality solution available that meets those requirements, if yes then
    you use that, if no you write your own.

    Without knowing anything about app, data and requirements nobody here
    can come with a specific recommendation.

    Arne

    Comment

    • Girish

      #3
      Re: Need architectural help to implement caching

      On Apr 5, 9:39 pm, Arne Vajhøj <a...@vajhoej.d kwrote:
      Girish wrote:
      i have to implement caching in my application, can any one tell me
      about the good techniques to implement caching, or provide some
      architectural help , so i can use it to my application.
      >
      i want to control caching dynamically according to my configuration.
      >
      You figure out your requirements for the cache, check if there are
      a quality solution available that meets those requirements, if yes then
      you use that, if no you write your own.
      >
      Without knowing anything about app, data and requirements nobody here
      can come with a specific recommendation.
      >
      Arne
      Actually, I have to implement a content based website.
      my requirements are to cache data by parameters(URL) , each page can
      have different cache time.
      and i have to provide a control panel where site administrator can be
      able to clear cache for the specific URL, complete page or whole
      site.
      or they can also able to change the cache time of a particular page.

      GJ

      Comment

      • Peter Duniho

        #4
        Re: Need architectural help to implement caching

        On Sat, 05 Apr 2008 23:00:13 -0700, Girish <gjoshi029@gmai l.comwrote:
        Actually, I have to implement a content based website.
        my requirements are to cache data by parameters(URL) , each page can
        have different cache time.
        and i have to provide a control panel where site administrator can be
        able to clear cache for the specific URL, complete page or whole site.
        or they can also able to change the cache time of a particular page.
        Well, I can't say that that really helps guide us with respect to
        architectural suggestions.

        That said, it sounds like the kind of thing that the Windows Server web
        proxy ought to already be able to do. I don't have any first-hand
        experience, but it seems like you should be able to insert the proxy
        between your web server and the outside world, and let it handle the
        caching for you.

        Pete

        Comment

        • Steve Gerrard

          #5
          Re: Need architectural help to implement caching

          Girish wrote:
          >
          Actually, I have to implement a content based website.
          my requirements are to cache data by parameters(URL) , each page can
          have different cache time.
          and i have to provide a control panel where site administrator can be
          able to clear cache for the specific URL, complete page or whole
          site.
          or they can also able to change the cache time of a particular page.
          >
          If you are doing the website in ASP.Net, the Application cache will do a lot of
          what you want.
          You can add various objects, set caching time, and set dependencies on other
          objects.
          You clear objects by simply removing them from the cache.

          Be aware, though, that caching is an optimization. Although it practice it
          usually does what you want, in principle the cache can be reset at any time,
          and does not guarantee that it will cache something for the time specified. The
          model is that you write your code to see if something is in the cache, and use
          it if is, else create it and add it. Also the application cache may or may not
          carry across multiple instances of the web app, or application pooling, or what
          have you.


          Comment

          Working...