Hi
In our application, we have event sourcing aggregates (we will keep them in MongoDB) and we want to publish the same event on the RabbitMQ broker.
For example, when we add a new user, API sends command, constructor command handler in aggregate handles the command and sends an event. an event sourcing handler handles the event and change state.
When should we send the event to RabbitMQ (for 3rd party apps)?
In the event handler, command handler or interceptor?