Skip to content

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

@danroth27

Description

@danroth27

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions