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

Snapshot effect for mutable state machines #61

Open
hairyhum opened this issue Mar 7, 2019 · 0 comments
Open

Snapshot effect for mutable state machines #61

hairyhum opened this issue Mar 7, 2019 · 0 comments

Comments

@hairyhum
Copy link
Contributor

hairyhum commented Mar 7, 2019

If a state machine is using external mutable state emitting {release_cursor, Index, State} does not make much sense. Especially because effects will be processed after a batch of commands are applied, which means that the external state will change at that point.
A new type of effect, for example ok_to_snapshot may be introduces to capture the current state with the current index.
This will not provide a possibility to capture the specific index and state, but will be faster and may be enough for many mutable state machines.

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

1 participant