Hello All,
This is continuation of question https://community.apigee.com/questions/31061/dynamically-route-to-target-endpoints-using-javasc.html
In my case, we have loadbalancer in target server as below.
However if use target.url for few cases then will targte.url override loadbalancer server?
<HTTPTargetConnection> <LoadBalancer> <Server name="BIZX-API-LB-INT"/> </LoadBalancer> <Path>/</Path> <Properties> <Property name="use.proxy">false</Property>
@Dino @Anil Sagar Could you also check here.
Solved! Go to Solution.
No. It's my understanding that setting target.url works if and only if you are not using a named TargetServer.
Why would you do that, though? What's your real goal here? Are you looking to load-balance across a set of backends? I think the decision table is like this:
number of backends | backend url is dynamic | recommended approach |
1 | No | use target with a fixed url |
varies | Yes | set target.url in the Target flow |
>1 | No | use target servers |
>1 | Yes | use Javascript to dynamically select and set target.url according to the algorithm you require. |
No. It's my understanding that setting target.url works if and only if you are not using a named TargetServer.
Why would you do that, though? What's your real goal here? Are you looking to load-balance across a set of backends? I think the decision table is like this:
number of backends | backend url is dynamic | recommended approach |
1 | No | use target with a fixed url |
varies | Yes | set target.url in the Target flow |
>1 | No | use target servers |
>1 | Yes | use Javascript to dynamically select and set target.url according to the algorithm you require. |
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |