Concept

Instead of UPDATE users SET balance=100, append event AccountCredited{amount:50}. Current state = fold events.

Advertisement

Snapshots

Replay all events expensive for old aggregates. Periodic snapshot + replay events after. Standard optimization.

Advertisement

CQRS pairing

Commands write events. Queries read materialized views (async projected from events). Different models per side.