Here is a simple SAGA command and event handling Spring Boot program written using the axon framework. We are testing auto scale out function with this program on the K8S.
For example, start this program 5 times. So we get 5 identical microservice instances.
Than, when we request a command by “commandGateway.send”, one of 5 instances will receive and process this command.
Afterwards, if we repeatedly request this same command, it will be automatically load balanced across 5 instances and processed.
This is a very nice feature of axon because developers don’t have to consider load balancing.
I have a question.
How does axon handle this load balancing internally?
Or could you please give a link to a manual with relevant information?
I’m curious about this mechanism.