Jeff's avatar
Level 1

Events and Responses

Hello

I was wondering if it makes sense to use events and commands within a route controller method? For example, I have an endpoint that dispatches a command to save an uploaded image. When the image is saved, I fire off an event: ImageWasSaved. Does it make sense for the controller to listen to this event and return a response, more specifically, a JSON response when complete?

0 likes
0 replies

Please or to participate in this conversation.