Skip to content

InteractiveServer SignalR Redis Backplane does not work #58078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
garrettlondon1 opened this issue Sep 25, 2024 · 1 comment
Closed
1 task done

InteractiveServer SignalR Redis Backplane does not work #58078

garrettlondon1 opened this issue Sep 25, 2024 · 1 comment
Labels
area-signalr Includes: SignalR clients and servers

Comments

@garrettlondon1
Copy link

garrettlondon1 commented Sep 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When adding Redis as a SignalR backplane for Blazor Server, it actually does not use Redis to serialize any Circuit or component state

Adding another SignalR hub for real time communications, using a Redis Backplane does work, but this is the same as a standard SignalR app (not Blazor specific)

Expected Behavior

I don't think Redis backplane can handle circuit state at all + constant chatter from websocket changing state so often.

Steps To Reproduce

services.AddRazorComponents()
            .AddInteractiveServerComponents()

services.AddSignalR()
                .AddStackExchangeRedis(o =>
                {
                    o.ConnectionFactory = async writer =>
                    {
                        var connection = await ConnectionMultiplexer.ConnectAsync(configurationOptions);
                        return connection;
                    };
                });

Exceptions (if any)

All InteractiveServer components fail to work if Redis connection is bad - even though it does not effect the main ComponentHub

.NET Version

8.0.401

Anything else?

No response

@ghost ghost added the area-signalr Includes: SignalR clients and servers label Sep 25, 2024
@garrettlondon1 garrettlondon1 changed the title SignalR Redis Backplane does not work InteractiveServer SignalR Redis Backplane does not work Sep 25, 2024
@garrettlondon1
Copy link
Author

garrettlondon1 commented Sep 25, 2024

It seems like the SignalR connection powering InteractiveServer has absolutely no idea about the Redis backplane, and the Redis Backplane is only applicable to additional hubs added for realtime functionality

https://learn.microsoft.com/en-us/aspnet/core/signalr/redis-backplane?view=aspnetcore-8.0

  • If this is the case, the documentation should be updated to say that scaling out SignalR does not work for Blazor Server at all. using a Redis Backplane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

No branches or pull requests

1 participant