Skip to content
Latchkey

What Is a Write Model?

A write model is the part of a system responsible for validating and applying changes while protecting domain invariants. It is normalized and rule-centric rather than tuned for fast reads. In CQRS it is paired with one or more read models that are derived from the changes it produces.

Why it matters

Concentrating consistency rules in the write model keeps correctness in one place. It frees read models to be reshaped for performance without risking the integrity of writes.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →