Hi Patrick,
I have a gut feel I know what is going on, so let me explain that to you.
The RoutingStrategy provides a key based on which the distributed CommandBus will route on.
In case of non-Axon Server, this would be the job of the CommandRouter (either JGroups or Spring Cloud).
When using Axon Server, it is in charge of deciding a route for the given key.
Deciding what this route is, is indeed random for the first entry of said key. After that, this is consistent.
Thus adding a routing key referencing the Spring application name will firstly choose one of your services, let's call this service foo.
Every use of the same Spring application name should ensure that that command is also routed to service foo.
If the latter is also what you are seeing, is currently unclear to me.
If you could validate that on your end Patrick, that would be great.
Hoping this will help you further Patrick!
Cheers,
Steven
PS. It is important to note that this mailing list will be discontinued as specified in this
thread.
Instead of this mailing list we have moved to use a forum style of communication, at
https://discuss.axoniq.io/.
Hope to see you there!