Dear Axon Team,
I downloaded one of your demos after looking at your documentation for a POC for one of the projects I am currently working on, in order to use event sourcing and Axon/CQRS.
As far as I understand the cross cutting concerns in an Axon/CQRS Application are handled via the use of Message Dispatch Interceptors.
What I am trying to figure out is how to register multiple interceptors that are part of different microservices at a specific order.
Driven from one of your examples, image a situation where for the ‘AxonBank’ example we added one microservice lets call it ‘A’ that was responsible for checking if a user had the authority to perform the withdraw action, and is in general responsible for proving authorization of users’ actions.
Another microservice lets call it ‘B’ that was responsible for checking that the withdraw amount is not over a certain limit set by ‘AxonBank’ and in general in control of any limits set by the ‘AxonBank’ on any transactions
In that situation the configuration demanded that the user should 1st be checked if he/she can perform the action before checking if the amount is over the limit.
How would we setup the application to register interceptor from microservice ‘A’ before the interceptor from microservice ‘B’.
Thank you in advance for your help.