Configure automatic snapshotting at 500 events per aggregate #46

Open
opened 2026-03-14 23:54:59 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: feat(event-sourcing): configure automatic snapshotting threshold
  • Branch: feature/m1-v12-snapshot-config

Background

sequent_setup.rb has a comment placeholder # Configure snapshotting with nothing configured. The default snapshot threshold in ServerConfig is 100 but the spec calls for 500.

Expected Behavior

Snapshotting is configured with a default threshold of 500 events per aggregate, configurable via ServerConfig[:snapshot_threshold].

Acceptance Criteria

  • Snapshot threshold configured in SequentSetup.configure
  • Default threshold is 500
  • config.yaml documents snapshot_threshold key with default 500

Subtasks

  • Add snapshotting configuration to sequent_setup.rb
  • Update config.yaml default to 500
  • Tests: Unit test verifying snapshot creation after threshold
  • Run bundle exec rake unit, fix any errors

Definition of Done

This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.

## Metadata - **Commit Message**: `feat(event-sourcing): configure automatic snapshotting threshold` - **Branch**: `feature/m1-v12-snapshot-config` ## Background `sequent_setup.rb` has a comment placeholder `# Configure snapshotting` with nothing configured. The default snapshot threshold in `ServerConfig` is 100 but the spec calls for 500. ## Expected Behavior Snapshotting is configured with a default threshold of 500 events per aggregate, configurable via `ServerConfig[:snapshot_threshold]`. ## Acceptance Criteria - [ ] Snapshot threshold configured in `SequentSetup.configure` - [ ] Default threshold is 500 - [ ] `config.yaml` documents `snapshot_threshold` key with default 500 ## Subtasks - [ ] Add snapshotting configuration to `sequent_setup.rb` - [ ] Update `config.yaml` default to 500 - [ ] Tests: Unit test verifying snapshot creation after threshold - [ ] Run `bundle exec rake unit`, fix any errors ## Definition of Done This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.
freemo added this to the v1.2.0 milestone 2026-03-14 23:54:59 +00:00
freemo self-assigned this 2026-03-15 04:25:22 +00:00
freemo modified the milestone from v1.2.0 to v1.0.0 2026-03-15 23:19:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#46
No description provided.