azure-redis-cache

Session timeout is not sliding in Azure Redis Cache Session State Provider

人走茶凉 提交于 2020-01-02 04:46:07
问题 Scaling out web application through multiple instances is one of biggest advantages of azure cloud. To achieve multiple VMs support for our web-role cloud application we are implementing Azure Redis Cache. We are using RedisSessionStateProvider provider for maintaining session state. Following are the configuration settings for session management within web.config file. <authentication mode="Forms"> <forms loginUrl="~/Login" slidingExpiration="true" timeout="20" defaultUrl="~/Default" /> <

SignalR cannot connect to Azure Redis on SSL

99封情书 提交于 2020-01-02 03:40:07
问题 I am currently hosting my redis cache server on Azure, and have signalR relying on it as the backbone using the following... GlobalHost.DependencyResolver.UseRedis("Server",port,"password","eventKey"); This works find on port 6379 (non-SSL) but my chat app breaks when I try to connect to the SSL port (6380) of my Azure Redis server, and the hub is never started. What could be the cause of this issue? Or am I doing something wrong? This is the error that appears on /signalr/connect in my

How to insert a batch of records into Redis

不打扰是莪最后的温柔 提交于 2019-12-24 03:51:06
问题 In a twitter-like application, one of the things they do is when someone posts a tweet, they iterate over all followers and create a copy of the tweet in their timeline. I need something similar. What is the best way to insert a tweet ID into say 10/100/1000 followers assuming I have a list of follower IDs. I am doing it within Azure WebJobs using Azure Redis. Each webjob is automatically created for every tweet received in the queue. So I may have around 16 simultaneous jobs running at the

Can't reconnect to Azure Redis via StackExchange.Redis

守給你的承諾、 提交于 2019-12-23 12:23:12
问题 Caveat : Okay so this is a weird one, and i'm not sure if SO is the right place. I have an Azure Website connecting to an Azure Redis Cache instance. (using StackExchange.Redis) Everything was great, then one day - the website couln't connect to Redis. Error: It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING Here's my connection string: mycache.redis.cache.windows.net,ssl=true,password=xxxxxx

Stackexchange.Redis timeouts & socketfailures

≡放荡痞女 提交于 2019-12-21 06:09:01
问题 I am using Azure Redis (using Stackexchange.Redis) as a cache storage and its generally working fine. But I am getting timeouts errors now and then and I can't nail down why it is happening. My redis connection settings: value="dev.redis.cache.windows.net,ssl=true,password=secret,abortConnect=false,syncTimeout=3000" I am getting all these exception in the same second (multiple calls): [I get these on GET operations aswell. Almost all these exceptions are on StringSet & StringGet. I rarely get

Does Azure Redis work over http?

大城市里の小女人 提交于 2019-12-11 21:06:42
问题 Does Azure Redis support transport over http. I am aware of the setting that allows me to choose whether to enable SSL or not. But it seems to me the connection to Azure Redis happens over TCP. "Every Redis Cluster node requires two TCP connections open. The normal Redis TCP port used to serve clients, for example 6379, plus the port obtained by adding 10000 to the data port, so 16379 in the example." I have also posted this question on the Microsoft forum. It can be found here. 回答1: No,

Azure Redis StackExchange.Redis ConnectionMultiplexer in ASP.net MVC

こ雲淡風輕ζ 提交于 2019-12-10 03:52:19
问题 I have read that in order to connect to Azure Redis cache is best to follow this practice: private static ConnectionMultiplexer Connection { get { return LazyConnection.Value; } } private static readonly Lazy<ConnectionMultiplexer> LazyConnection = new Lazy<ConnectionMultiplexer>( () => { return ConnectionMultiplexer.Connect(connStinrg); }); And according to Azure Redis docs: The connection to the Azure Redis Cache is managed by the ConnectionMultiplexer class. This class is designed to be

Azure Redis Cache max connections reached

时光毁灭记忆、已成空白 提交于 2019-12-09 06:27:39
问题 I am using Azure Redis Cache for storing some quick lookup data and this Cache is read/connected by 10 client applications. All the applications are written in .NET 4.6, and this includes ASP.NET MVC Web application, Web API and few worker roles that run in every 1 second. All clients are using StackExchange.Redis for connecting to the Cache. However, I get intermittent timeouts and I have observed that in Azure Portal, max connections has reached 1000 (for my pricing tier). Since I have only

How to connect to slave instance of an Azure Redis Cache

痴心易碎 提交于 2019-12-08 13:29:32
问题 The standard and premium pricing tiers of Azure Redis Cache provide master/slave replication: Standard—A replicated cache in a two-node primary/secondary configuration managed by Microsoft, with a high-availability SLA. But the Azure portal provides connection details (hostname, port, key) for only a single redis instance. Is there a way to connect to connect to the slave process in a replica? 回答1: Since the Azure Redis service manages replication and automatic failover on your behalf, it is

Session timeout is not sliding in Azure Redis Cache Session State Provider

谁说我不能喝 提交于 2019-12-05 10:11:57
Scaling out web application through multiple instances is one of biggest advantages of azure cloud. To achieve multiple VMs support for our web-role cloud application we are implementing Azure Redis Cache. We are using RedisSessionStateProvider provider for maintaining session state. Following are the configuration settings for session management within web.config file. <authentication mode="Forms"> <forms loginUrl="~/Login" slidingExpiration="true" timeout="20" defaultUrl="~/Default" /> </authentication> <sessionState timeout="20" mode="Custom" customProvider="MySessionStateStore"> <providers