*Feb 2025*
From the book Understanding Eventsourcing by Martin Dilger:
- Command Handler is defined as “the first component that knows how to handle a command”.
- The Command Handler checks the basic shape of the Command and executes the command directly or as a part of an aggregate.
- Command handlers can be standalone, or they can be defined directly on the aggregate, because ultimately, the aggregate will decide if a command can be processed or not.
![[event-sourcing-command-handler.png]]