Azure - An Alternative Way to Slow Windows Azure Caching for Multiple Instances

Now we are moving our existing web application to Azure. Azure caching is very slow .

Is there any alternative caching mechanism (better than Azure Caching) for multiple instances in Azure? For example, storing caching in Azure Storage or Azure SQL.

Thanks for your input!

Added

public class AzureCacheService : ICacheService { readonly DataCacheFactory _factory = new DataCacheFactory(); private readonly DataCache _cache; public AzureCacheService() { _cache = _factory.GetDefaultCache(); } public object Get(string key) { return _cache.Get(key); } public void Insert(string key, object obj) { if (obj != null) { _cache.Put(key, obj, new TimeSpan(3, 0, 0)); } } public void Remove(string key) { _cache.Remove(key); } } *** Accessing *** IoC.Resolve<ICacheService>().Insert(key, MyObject); IoC.Resolve<ICacheService>().Remove(key); 
0
source share
3 answers

In general, WA caching does not slow down, especially if you enable "local caching" (which should usually reduce latency to 0 ms if data fits into memory). Memcached is another feature: http://blog.smarx.com/posts/memcached-in-windows-azure .

You won't find a performance difference between WA Caching and Memcached, but in my experience, Memcached is a little faster. However, Memcached will not be able to outperform the local caching feature in WA Caching, since there is no latency. (This is accessing data in proc mode without serialization. Almost more efficient than possible.)

+2
source

It's not clear that Windows Azure caching is based on SQL Azure, and after I fixed the resources, I was able to verify that it was sure that it was in the cache. therefore, if you decide to write your own using SQL Azure, it will be much slower than what you already get now, and the same applies to the Azure Table repository. [The rest of the comment is deleted]

0
source

You can use the recently released Windows Azure Caching (Preview). It has a 5x improvement over shared caching.

Link: http://www.windowsazure.com/en-us/develop/net/how-to-guides/cache/

0
source

All Articles