Interceptor for messages

Hi,

I’m working with a distributed command bus, and i have many client applications generating commands, and command handlers receiving the commands in other applications.
I would like to add a read-only observer to all the communication going on to log, do statistical analysis, etc.
If i had a SimpleCommandBus, i think i could have achieved this using a HandlerInterceptor.

Is my use case supported by Axon? If yes, what’s the mechanism?

Thanks
Maurice

Hi Mauirce,

There is an axon-metrics module which you can add to your dependencies in order to monitor messages. It is dependent on io.dropwizard.metrics.

Let us know if this is sufficient for you.

Cheers,
Milan.

Thanks for the pointer. I will look at it.