PrepZone Logo
PrepZone
Back to Database

Database · Hard

Explain CQRS and event sourcing. When are they worth the complexity?

DatabaseArchitectureArchitect

Answer preview

CQRS and event sourcing are two independent ideas that are often used together. CQRS separates the write model from the read model; event sourcing stores state as an append-only sequence of events instead of a mutable row. You can do either one without the other.…