Decider snapshots — avoid full replay for long-lived streams #57
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every
decider.Load()replays ALL events from the start. At 1000 events that is 4.6ms on SQLite. At 10K+ events this becomes a real bottleneck for command processing latency.Proposal
Periodic state snapshots. Load = snapshot + events since snapshot.
Decider integration:
Load()checks for snapshot firstWithSnapshotEvery(100)Benchmark Target
Store Implementations
snapshotstableAcceptance