0

I've got a project that uses SignalR and a RedisBackplane, we've moved from StackExchange.Redis to ServiceStack.Redis due to Redis Sentinel compatibility issues (Not movable)

However, it now looks like the support for SignalR Redis Backplane seems to be tied into StackExchange?

Have I completely missed something, or is there support for ServiceStack on a SignalR Redis Backplane?

Current code looks like:

 var redisConnection = ConnectionMultiplexer.Connect(this.Configuration.GetValue<string>("Redis"));
            services.AddSignalR(o => { o.EnableDetailedErrors = true; })
                .AddStackExchangeRedis(options =>
                {
                    options.Configuration.ChannelPrefix = "Audit";
                    options.ConnectionFactory =
                        writer => Task.FromResult(redisConnection as IConnectionMultiplexer);
                });
Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89

2 Answers2

1

I don't believe anyone has implemented a SignalR Redis backplane using ServiceStack.Redis.

ServiceStack does have it's own real-time events solution using SSE which includes a Redis Server Events implementation that uses ServiceStack.Redis (akin to SignalR Redis backplane).

mythz
  • 141,670
  • 29
  • 246
  • 390
-2

I prefer to use username/password in the configuration

//StackExchange.Redis for configuration options
 var redisConfiguration = new ConfigurationOptions
            {
                EndPoints = { "serverinfo:portinfo" },
                User = username,
                Password = password
                //,Ssl = true
            };

            signalRBuilder.AddStackExchangeRedis(options => { options.Configuration  = redisConfiguration; });
  • That's great, and thanks for that, but it wasn't really what was asked. – Stuart.Sklinar Oct 28 '20 at 19:18
  • :) when I was trying to use username/password in SignalR Redis, I didn't find proper information to implement it. So just added my comment to those who're trying for it. – umesh maharjan Oct 29 '20 at 16:17
  • Thanks for that, but it's still not relevant *for this question*, I would suggest creation your own question, and then you can also answer it yourself with your own answer – Stuart.Sklinar Oct 30 '20 at 17:05