Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>AppFabric Cache is an excellent fit for sharing data between roles (or instances of the same role). The interesting thing about AppFabric Cache is that it doesn't apply just to ASP.NET Session State - there just happens to be an out-of-the-box ASP.NET Session State Provider that sits atop the cache.</p> <p>Using the cache is nearly trivial. Here's a snippet from a command-line console app demo:</p> <pre><code>var dataCacheFactory = new DataCacheFactory(); DataCache dataCache = dataCacheFactory.GetDefaultCache(); Console.Write("Enter a string to cache: "); string value = Console.ReadLine(); dataCache.Put("key", value); string response = (string)dataCache.Get("key"); Console.WriteLine("Cached string: " + response); </code></pre> <p>Using it as a Session State provider requires zero code change - it's all driven by the app.config / web.config.</p> <p>vtortola makes a good point about the AppFabric Cache being in CTP, but we should see that in production in the near-term.</p> <p>Table Storage will work as well, depending on the complexity of your queries.It sounds like your queries would be relatively straightforward.</p> <p>Since pricing hasn't been announced yet for AppFabric Cache, this could factor into your decision vs., say, Table Storage which runs $0.15 / GB plus related transactions (although transactions won't likely have any noticeable impact on your cost, at $0.01 per 10,000 transactions).</p> <p><strong>EDIT June 7, 2012</strong> Pricing info has changed since original answer:</p> <ul> <li>The Cache service is in production, and starts at $45 for 128MB (full pricing details <a href="https://www.windowsazure.com/en-us/pricing/details/#caching" rel="nofollow">here</a>).</li> <li>Transactions are now $0.01 per 100,000 transactions, with storage starting at $0.125 per GB and dropping based on quantity (see <a href="https://www.windowsazure.com/en-us/pricing/details/#data-management" rel="nofollow">here</a> for details).</li> <li>There's now a new Cache capability that may be enabled within your Web or Worker role instances, using a percentage of available RAM, and costing ZERO. You may also create an independent Cache Role. Both of these are supported with the brand new SDK v1.7. Scott Guthrie <a href="http://weblogs.asp.net/scottgu/archive/2012/06/07/meet-the-new-windows-azure.aspx" rel="nofollow">blogged</a> about the new features (including Cache).</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload