skip to Main Content

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);
                });

2

Answers


  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).

    Login or Signup to reply.
  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; });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search