Design Patterns · Senior · Question 5 of 75
What does CQRS mean?
- ✓Correct answer: Separate models for writing (commands) and reading (queries)
- 2Client-side caching of requests in the Redux store
- 3Encrypting requests and responses in transit
Explanation
The read model can be optimized for display (denormalized views), and the write model for business rules. It adds complexity and often eventual consistency, so it's used in complex domains, not by default. On the frontend, a similar idea is separating mutations and queries, as in TanStack Query.