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

[Feat] Using a state buffer instead of just snapshots #356

Open
sleipnir opened this issue Aug 8, 2024 · 0 comments
Open

[Feat] Using a state buffer instead of just snapshots #356

sleipnir opened this issue Aug 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request protocol Specification of protocol proxy sdks Support languages statestores
Milestone

Comments

@sleipnir
Copy link
Member

sleipnir commented Aug 8, 2024

Describe the feature

Currently, we only consider the last valid state during snapshots. The proposal of this issue is to allow intermediate states to be maintained in the actor and that during the snapshot event all state transitions are saved in persistent storage. It would also be interesting to change the Postgres adapter to have the same behavior as MariaDB. In MariaDB, we use the temporal data tables feature to allow all snapshots to be searchable in persistent storage and not just the last one as is the case in Postgres. This way, we would have access to all state revisions, which would allow the development of an Eventsourced API on top of Spawn.

Why would that be important to you?
Expands Spawn's capabilities and use cases

Additional context
Components that require changes for this to work:

Actor Entity
Postgres State Store Adapter
Maybe protobuf protocol
Maybe SDKs

@sleipnir sleipnir added the enhancement New feature or request label Aug 8, 2024
@sleipnir sleipnir added protocol Specification of protocol statestores proxy sdks Support languages labels Aug 8, 2024
@sleipnir sleipnir added this to the 1.6.0 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request protocol Specification of protocol proxy sdks Support languages statestores
Projects
Status: Ready
Development

No branches or pull requests

2 participants