Skip to content

APIs for components to persist state across circuits manually #30344

@javiercn

Description

@javiercn

This is tracking the next piece of #27576. (Pointing out that this issue has additional 20 reactions)

We want to provide the ability for circuits to be paused and stored in "permanent" storage to make possible certain scenarios:

  • Migrating circuits across servers.
  • Freeing up resources when the circuits become idle.
  • Enabling reconnection to an existing session even after the circuit has been discarded.

Our goal is that circuits stored this way can be restored in a similar fashion as when they are restored after prerendering.

Important note

This is not a suggestion that circuits could automatically be persisted in their entirety. In general that's not possible as much of the system state is not even serializable, and we don't require developers only to work with serializable data. Rather, what we may be able to do here is provide some APIs by which you can load and save state in your components, so that if a user loses their circuit, we can reload that manually-saved state in the new circuit. It could not be a global or automatic thing.

Activity

added this to the 6.0-preview3 milestone on Feb 21, 2021
added
Needs: DesignThis issue requires design work before implementating.
on Feb 21, 2021
self-assigned this
on Feb 21, 2021
added
enhancementThis issue represents an ask for new feature or an enhancement to an existing one
on Feb 23, 2021
ghost
ghost

224 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Development

No branches or pull requests

    Participants

    @kijanawoodard@pranavkm@vindberg@manigandham@adamhathcock

    Issue actions

      APIs for components to persist state across circuits manually · Issue #30344 · dotnet/aspnetcore