Command
Зачем
- Decoupled
- Separates Intent from Interpretation
- Framework and Client Decoupling
- Architectural Boundary
- Используется в паттерне CQRS
- Testable
- Extendable
- Сущности
- Client
- Invoker
- Command
- Receiver
Patterns
- Command
- Command Handler
- the command handler should not perform secondary tasks - use Events
- Single responsibility principle (SRP)
- Open/closed principle (OCP)
- the command handler should not perform secondary tasks - use Events
- Связь Command и Comman Handler реализуется
- паттерном Command Bus
- медиатор