Loading...
Loading...
CQRS and Event Sourcing patterns for scalable, auditable systems with separated read/write models. Use when building audit-required systems, implementing temporal queries, or designing high-scale applications with complex domain logic.
npx skill4agent add nickcrew/claude-ctx-plugin cqrs-event-sourcing| Commands (Write) | Queries (Read) |
|---|---|
| Express intent (CreateOrder, UpdatePrice) | Return data, never change state |
| Can be rejected (validation failures) | Can be cached and optimized |
| Return success/failure, not data | Multiple models for different needs |
| Change system state | Eventually consistent with writes |
UPDATE users SET email = 'new@email.com'APPEND UserEmailChanged event| Task | Load reference |
|---|---|
| CQRS implementation patterns | |
| Event sourcing & snapshots | |
| EventStoreDB & Axon Framework | |
| Consistency patterns | |
| Best practices checklist | |