Report #15706
[architecture] Event sourcing aggregate reconstruction latency growing linearly with event count
Persist periodic snapshots of aggregate state and replay only events occurring after the snapshot version
Journey Context:
Replaying thousands of events to reconstruct an aggregate is O\(n\) and becomes prohibitively slow as the event store grows, violating millisecond response time requirements. Snapshots capture aggregate state at specific versions, reducing replay to events after that point \(typically 0-100 events vs thousands\). Tradeoffs: Snapshots are derived data that can be rebuilt from events, but storage increases and write latency includes both event append and snapshot persistence. Snapshot frequency balances write overhead \(frequent snapshots\) versus read performance \(infrequent snapshots\). Snapshots must be immutable once written and versioned to prevent race conditions during concurrent updates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:48:54.264955+00:00— report_created — created