Single API Proxy redirect to multiple API URL based on load balancing or failure,Route Direct URL based on load balancing in API Proxy

Hi all,

I am trying to use multiple API's in single apigee URL based on API traffic,load or failure.

i tried target server but unable to set direct URL my requirement is below

Ex:https://myname.apigee.net/test it redirect to below API's based on traffic or failure

TargetPoint-1:https://mydomain.com/test1

TargetPoint-2:https://mydomain.com/test2

TargetPoint-3:https://mydomain.com/test3

Can anyone suggest me for the best solution.

,

Hi,

I am trying to use single API URL it redirect to multiple API based on load or failure. in target server am unable to set direct URL can anyone please help.

Ex: https://somename.apigee.net/testapi it redirect to below API URL based on load,traffic or failure

TargetEndpoints-1:https://mydomain.com/test1

TargetEndpoints-2:https://mydomain.com/test2

etc..

0 1 118
1 REPLY 1

The target server is dependent upon routing to different hostnames. You (at the proxy layer) do not have the opportunity to inject a different path, based on the hostname resulting from the targetserver selection.

If that's a problem, then you can design your proxy to NOT use the targetserver mechanism, and instead make routing decisions in the proxy itself, in JavaScript.

Here is one example that shows how this might work.

https://github.com/DinoChiesa/ApigeeEdge-BlueGreen-1

Does this help?