modernice/goes

Don't decode events and commands before necessary

Closed this issue · 0 comments

Example: Command bus receives a "command dispatched" event, constructs the command for internal processing. This requires the command registry to have the command payload registered even if the user did not subscribe to the command.

Solution: Don't construct the command before knowing that the user subscribed to the command.