Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. questions about caching in a webservice

questions about caching in a webservice

Scheduled Pinned Locked Moved ASP.NET
businessregexperformancetutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dd314159
    wrote on last edited by
    #1

    Hello, 1. I was under the impression that cache.insert was thread safe. Is this true? 2. Also you cannot count on a cached item staying in the cache until it expires because it maybe be removed for memory reasons - true? 3. Are there rules of thumb for how much data is too much to cache? which would then just cause the cache to be continually shuffled with objects. I know it would be depend on many things...but if there any basic parameters? Also there are different patterns of how to implement caching one of which is called: Asynchronous pull loading - which is what I probably should use. It requires implementing a dispatcher to consolidate data, a cache and the business logic. I don't have lots of data consolidation to do but do have a situation where I want to pull data all at once into the cache, then expire on a regular and fairly infrequent basis. 4. Does this sound like the kind of pattern for me to use then? 5. Would the dispatcher then just be a method called asynchronously to pull data on the cache object expiration and then also as a callback if the cache object is removed for other reasons? Thanks for enlightening me on any of this.

    Y 1 Reply Last reply
    0
    • D dd314159

      Hello, 1. I was under the impression that cache.insert was thread safe. Is this true? 2. Also you cannot count on a cached item staying in the cache until it expires because it maybe be removed for memory reasons - true? 3. Are there rules of thumb for how much data is too much to cache? which would then just cause the cache to be continually shuffled with objects. I know it would be depend on many things...but if there any basic parameters? Also there are different patterns of how to implement caching one of which is called: Asynchronous pull loading - which is what I probably should use. It requires implementing a dispatcher to consolidate data, a cache and the business logic. I don't have lots of data consolidation to do but do have a situation where I want to pull data all at once into the cache, then expire on a regular and fairly infrequent basis. 4. Does this sound like the kind of pattern for me to use then? 5. Would the dispatcher then just be a method called asynchronously to pull data on the cache object expiration and then also as a callback if the cache object is removed for other reasons? Thanks for enlightening me on any of this.

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      I don't know, as I have not done much webservice caching. Is there anything that can answer your question in this article (XML Web Service Caching Strategies[^])

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      D 1 Reply Last reply
      0
      • Y Yusuf

        I don't know, as I have not done much webservice caching. Is there anything that can answer your question in this article (XML Web Service Caching Strategies[^])

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        D Offline
        D Offline
        dd314159
        wrote on last edited by
        #3

        Thanks - that's a good article.

        Y 1 Reply Last reply
        0
        • D dd314159

          Thanks - that's a good article.

          Y Offline
          Y Offline
          Yusuf
          wrote on last edited by
          #4

          you are welcome.

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups