Hi,
I did a little test to check if there is a load balancing when I have a service with action that calls to another action on the same service.
I created 2 instances of the same service and simulated 10,000 calls to that action(that calls to another action on the service).
In the logs I always saw that the nodeID is the same on the call to the main action and in the action that he called.
Although load balancing exists on the call to the main action , but the "internal calls" were always on the same instance.
Now, I want to be sure that is the default behavior ? if there is something can be done , some configuration or some way to perform the call to action on same service so the load balancing will be available?
Thanks.
The ServiceBroker first tries to call the local instances of service (if exists) to reduce network latencies. This logic can be turned off in broker options with preferLocal: false property under the registry key.
Thanks for the quick response馃榾
I will try it.
Most helpful comment
The ServiceBroker first tries to call the local instances of service (if exists) to reduce network latencies. This logic can be turned off in broker options with preferLocal: false property under the registry key.