Event Store
Event Store
Section titled “Event Store”An append-only database that stores events. The event store is the source of truth for aggregate state.
Characteristics
Section titled “Characteristics”- Append-only: Events are never modified or deleted (except for GDPR/legal requirements)
- Ordered: Events have sequence numbers within each aggregate
- Immutable: Once written, events cannot change
- Complete: Contains full history of all state changes
In Angzarr
Section titled “In Angzarr”Angzarr supports multiple event store backends:
- PostgreSQL (recommended for production)
- SQLite (local development/testing)
- Redis (high-throughput scenarios)
- NATS JetStream (distributed)
Operations
Section titled “Operations”| Operation | Description |
|---|---|
| Append | Add new events with sequence validation |
| Read by root | Get all events for an aggregate |
| Read by correlation | Get events across aggregates in a workflow |
| Temporal query | Get events at a point in time |
Relationship to Read Models
Section titled “Relationship to Read Models”The event store is the write side. Projectors consume events and build read-optimized projections for queries.