Skip to content
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

Spec'ing state saving and loading #71

Closed
skrawcz opened this issue Mar 14, 2024 · 1 comment
Closed

Spec'ing state saving and loading #71

skrawcz opened this issue Mar 14, 2024 · 1 comment

Comments

@skrawcz
Copy link
Contributor

skrawcz commented Mar 14, 2024

Use cases:

  1. User controls how the app is started via with_state() and with_entrypoint().
  2. User delegates to a persister & burr to reload state for a given partition key, app_id -- via with_db() and with_identifier. Seqeuence id is either 0 or loaded from state, or passed in via with_identifier.
  3. user can add a persister via with_persistence -- need to deduplicate hooks potentially

Notes:

  • tracker & persister can be same object
  • can have separate persister and tracker

Requirements:

  • app knows about partition key
  • app knows about app_id or generates one
  • app sets sequence id to 0 unless it loads one from prior state
  • hooks get passed partition key, app_id, sequence no, position
@elijahbenizzy
Copy link
Contributor

Implemented by #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants