Given I have a message bus that can handle commands and events. A command handler can dispatch an event. But should an event handler be able to dispatch another command? Or should event handlers only be able to dispatch further events?
Example:
PostReceivedEventHandlersubscribes toPostReceivedEvent, invokesValidatePostCommandValidatePostCommandHandlerhandlesValidatePostCommand, dispatchesPostValidatedSuccessfullyEvent
Is this legit? Or should the logic from the ValidatePostCommandHandler go into the PostReceivedEventHandler and this one should then dispatch the PostValidatedSuccessfullyEvent directly?
Because having just event handlers that have no real business logic in it but just dispatch other commands feels somehow wrong to me.