In event sourcing and CQRS, command handlers should take the commands and turn it into one or more events.
Of course, it also needs to validate commands, not emitting an event as an event holds actual change.
Reference
Hoffman, Kevin. Real-World Event Sourcing: Distribute, Evolve, and Scale Your Elixir Applications. The Pragmatic Bookshelf, 2025. The Pragmatic Programmers.
Highlights or timestamps
Transclude of 1756163751-real-world-event-sourcing#^000002