I am trying to achieve distributed @EventHandler behavior. I have two microservices. One is rental, and the other is payment. I have created a post-request. The CommandGateway processes the request and then the Aggregate haldles the command. When the aggregate publishes the event, I want to handle this event from the payment service. How to get the behavior? Does axon support distributed event handler. Here is my below code from the two services.
I am using the axon server as the communication middleware.
Another question is if I want to use Kafka instead of axon server, what do I need to do to get the exact same behavior? Thanks