I’ve been doing some experiments to see if there’s a way to use the built-in policy to accomplish some tasks without writing javascript.
The purpose of this experiment is because some customers have asked: the same API calls to the same host, but only the back-end resource path is different, such as https://same_hostname/path1 https://same_hostname/path2
Here is my question:
If I set only one host in Target Servers, is it possible to implement the same server but different paths in setting in ? And can I also apply Weighted?
What’s the use case for different paths at random?
The load balancer is intended to help load balance/distribute traffic across a pool of servers..
If you have non-random use case, ie conditional to something, you could introduce another target endpoint with the same server/s, but different path. The route to that target could then be conditional
Their Target Server hostname is the same, but the path attached to it is different.
Under the above premise, how can Apigee direct the traffic? Because they have mentioned that under the same API call, can it be possible to direct 10% of the traffic to server A and 90% to server B?
If I use the way you provided, I read the documentation: