NestJS · Senior · Question 22 of 75
When does @nestjs/cqrs pay off?
- ✓Correct answer: In complex domains where commands, queries and events have different models and side effects, possibly with event sourcing
- 2Only for GraphQL
- 3For any CRUD API, always
Explanation
CQRS adds indirection. For simple resources it hides straightforward logic behind buses and handlers.