Loading...
Loading...
Separating Read/Write data paths vs storing immutable streams of state change events.
Launch Interactive System SimulatorCommand Query Responsibility Segregation separates read data models from write data models.
High read-to-write ratio applications (e.g. social feeds, e-commerce catalogs)
Persists entity state as a chronological append-only sequence of immutable domain events.
Financial accounting, ledger systems, order tracking
| Vector | CQRS | Event Sourcing |
|---|---|---|
| Primary Focus | Read/Write path segregation | State storage mechanism |
| Auditability | Standard database auditing | Native 100% immutable audit log |
CQRS is about segregating reads from writes. Event Sourcing is about how data is stored. They are often combined in high-throughput enterprise systems.