# Event Sourcing

> Event Sourcing

- Skill: `neuralblitz/event-sourcing-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add neuralblitz/event-sourcing-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/neuralblitz/event-sourcing-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: NeuralBlitz (https://skillmd.com/u/neuralblitz)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/neuralblitz/event-sourcing-2

---

# Event Sourcing

Event sourcing is an architectural pattern where state changes are stored as a sequence of events. The current state is rebuilt by replaying these events.

## Key Concepts

- Event store
- Event versioning
- Snapshots for performance
- Projections
- Temporal queries

## Common Use Cases

- Audit trails required
- Complex state changes
- Temporal queries
- Rebuilding state
- Distributed systems

## Best Practices

- Version events carefully
- Implement snapshotting
- Design immutable events
- Use idempotent handlers
- Consider event size

## Resources

- EventSourcing.io
- Related Skills: cqrs, domain-driven-design, kafka

## Getting Started

Consider event sourcing for domains where audit trails and temporal queries provide significant business value, and where the complexity trade-off is justified.

