azure-caching

Environment.SetEnvironmentVariable in Azure Function

≯℡__Kan透↙ 提交于 2021-02-10 20:15:51
问题 How bad it is to use Environment.SetEnvironmentVariable in Azure Functions? Based on my initial observation it seems it is working as expected (ie. storing the value and returning when I asked using Environment.GetEnvironmentVariable call) but not showing anywhere in the environment variables list when I open the function in Kudu explorer. Where it is setting, is it okay to use or any adverse effects of using it? In my case, I have to get the user details using the token passed to Function

Environment.SetEnvironmentVariable in Azure Function

天涯浪子 提交于 2021-02-10 20:06:24
问题 How bad it is to use Environment.SetEnvironmentVariable in Azure Functions? Based on my initial observation it seems it is working as expected (ie. storing the value and returning when I asked using Environment.GetEnvironmentVariable call) but not showing anywhere in the environment variables list when I open the function in Kudu explorer. Where it is setting, is it okay to use or any adverse effects of using it? In my case, I have to get the user details using the token passed to Function

Implement azure colocated caching

笑着哭i 提交于 2020-01-21 04:45:08
问题 Using VS2012 I added the caching feature from the WebRole Properties Caching Tab. Among others, it generated the following XML in web.config: <dataCacheClients> <tracing sinkType="DiagnosticSink" traceLevel="Error" /> <dataCacheClient name="default"> <autoDiscover isEnabled="true" identifier="[cluster role name]"/> <!-- <localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" /> --> </dataCacheClient> </dataCacheClients> Okay, great. I replaced the [cluster role

windows azure caching - best practice for checking whether a key exist or not

我们两清 提交于 2019-12-24 18:27:48
问题 In Windows Azure Caching (http://msdn.microsoft.com/en-us/library/windowsazure/hh914161.aspx), Microsoft.ApplicationServer.Caching.DataCacheException is thrown (with ErrorCode: KeyDoesNotExist), when someone tries to get a not-cached object (i.e., the key of the object does not exist). Instead of handling DataCacheException, is there any way to check if the key exists gracefully? thanks, 回答1: The DataCache.Get(key) method returns null if the provided key is not found. Any other methods that

Can I access Azure AppFabric Cache from development emulator?

对着背影说爱祢 提交于 2019-12-24 15:24:45
问题 I am getting below exception when I access Azure cache from my dev azure application. ErrorCode:SubStatus:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache

When using Azure AppFabric Cache as a Session State Provider what causes a transaction

烈酒焚心 提交于 2019-12-23 06:32:06
问题 I have AppFabric Cache configured as the Session State Provider for an ASP.NET MVC application. Not all pages access session state (in fact only a few ajax requests do, the main pages commonly accessed by the site users don't, in order to make them cacheable) Give the hourly transaction limit on AppFabric cache, what causes the Session Provider to execute a transaction with the Cache ? (See @knightpfhor answer on Estimating simultaneous Azure Appfabric Cache Connections for the source of this

Which Dedicated Cache configuration to use?

泄露秘密 提交于 2019-12-19 10:36:07
问题 A large e-commerce site is looking to switch its session cache from Shared cache to dedicated cache. It is usually running on medium-size servers (5-6)... During busy times, it's running on 20 medium servers. During the very busy times, it is not unreasonable to have 2000+ requests per second to the site Is co-located cache good enough here or must cache be in the dedicate worker role? Also, must high-availability be enabled for session data? The site relies upon session data to be present

Why do my instances recycle when trying to store sessions in co-located Azure cache?

ⅰ亾dé卋堺 提交于 2019-12-13 07:39:13
问题 I run an ASP.Net MVC3 application and have followed this Windows Azure How-To on how to store my sessions in a co-located cache in Windows Azure. I have installed the mentioned Nuget-package, and applied the necessary information to my web.config. The web role is setup to run 2 small instances, and use a 30% co-located cache. When I deploy to Azure, my instances just recycle. Through a remote desktop connection to one of the instances, I have found these two events in the logs, that seem

Missing cache role behavior of Windows Azure Caching 2.1 in compute emulator

匆匆过客 提交于 2019-12-12 03:42:59
问题 I work on a hosted service which has Windows Azure Cache deployed on instances of the web role. The cache is enabled on production but in the compute emulator we disable it since we often experience slowdowns and exceptions with the cache emulator. In particular, in the compute emulator we do not load the caching module in the csdef and at runtime we detect if cache is enabled by creating the DataCacheFactory and catching the specific exception thrown when the role indicated in the client

Caching large objects - LocalCache performance

蹲街弑〆低调 提交于 2019-12-12 02:05:26
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . I have a few large objects which need to be stored and fetched from cache. These objects are around 1 - 2 mb in size. When running with localCache enabled, retrieval takes no more than a few milliseconds, but without it, it takes around 3 seconds, consistently. I am using Azure In-role cache (colocated). Can anyone shed some light as to why it would be so