-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Recovering the app state after server downtime in server-side Blazor #9734
Comments
You can read more about the subject here: Reconnection to the same server |
Thanks @enetstudio , but unfortunately it doesn't answer any of those questions. |
Hi @kjeske. We don't have any documentation yet on how to do this, but it is one of our main areas of focus for our next milestone (preview7). |
Closing as this is dealt with by dotnet/AspNetCore.Docs#13259 |
Is there any documentation, article or other resource that shows the ways of solving the issue with loosing app state in server-size blazor? The documentation says:
It says that as long as the client's state is still in memory, the client session resumes without losing any state. But what can we do when the client's state is not in the memory anymore because the app was down after redeployment for example or when the client was disconnected and tries to connect again but reaches different server.
So the main questions are:
I think answering those questions at early stage is important in terms of using server-side blazor in any kind of solid business where things like scaling out are in use.
When it comes to first question i suppose we could keep the state in Redis but then we would need to somehow identify the users, including anonymous ones, to have a unique key for each app state per user.
Would be also very nice to know how Blazor is managing the users app state in memory. And how to control the whole process of using it in order to put some extra logic to persist and recover.
The second question is maybe handled by Azure SignalR Service, but I haven't seen any solid article or documentation saying about it in context of sever-side blazor. I found a nice starting point here:
https://docs.microsoft.com/en-us/aspnet/signalr/overview/performance/scaleout-in-signalr
The text was updated successfully, but these errors were encountered: