dotnet / dotnet/aspnetcore

Add API for persisting component state for circuits still actively being used

Open
#64,840 1 comment 1 reaction 0 assignees View on GitHub
area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

.NET 10 we added support for pausing circuits by persisting component state and then evicting the circuit. This frees up server resources when the circuit isn't being actively being used. The circuit can then later be resumed when the user resumes using the app.

In some cases, you may want to persist component state to the client while the circuit is still actively being used. For example, the server could go down in an ungraceful manner losing the circuit state while the user is still actively using the app. By persisting the app state periodically, the user's state can be restored by reconnecting to a different server instance and resuming with a new circuit based on the saved state.

Since the existing `pauseCircuit` API both persists and evicts the circuit, it can't really be used for persisting the state when the circuit is still in active use. We should consider adding an API that just persists without evicting the circuit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.