SignalR Scaleout on Azure RedisCache - Connection Issues

Based on the information here I got up to Azure Redis Cache . I've bumped SignalR over Azure ServiceBus up to this point, but to be honest, it drops a lot of messages and I would like to explore other options. I'm trying to just make a small discovery with my new Azure Redis cache instance, but my application won't work anymore with a single line configuration change.

EDIT - I must add that I am using SignalR 2.2.0 libraries.

Old code:

var sbConnString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString");
GlobalHost.DependencyResolver.UseServiceBus(sbConnString, ApplicationGlobals.APPLICATION_NAME);


New code:

var redisConnString = ",ssl=true,password=PRIMARY_ACCESS_KEY";
GlobalHost.DependencyResolver.UseRedis(new RedisScaleoutConfiguration(redisConnString, "MYAPP"));


New Code Option 2:

GlobalHost.DependencyResolver.UseRedis("", 6380, "PRIMARY_ACCESS_KEY", "MYAPP"));


I've tried all the SSL / Non-SSL permutations, the connection string constructor and the contructor parameter, etc., but I haven't had time to start the WebApp with Redis scaling configuration yet. What am I doing wrong?

Azure Redis Cache


source to share

1 answer

I recovered the access keys and it started. It was helpful to create a small console application based on StackExchange.Redis to test the connection outside of the signal.

I found this ScottGu article on RedisCache helpful.



All Articles