Command Handler
Noun · Development
Definitions
A unit of code responsible for executing the logic associated with a specific command or action request. Command handlers are often used to keep intent, validation, and execution grouped cleanly without overloading controllers or transport-specific code.
In plain English: The code that actually carries out a specific command.
Example: "The `CreateInvoice` command handler encapsulated validation, domain events, and persistence instead of scattering them across the HTTP route and repository layer."