Skip to content

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

@sleipnir

Description

@sleipnir

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

Metadata

Metadata

Labels

Type

No type

Projects

Status

Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions