retry the request to another target

Not applicable

We have a set of backends in an array. Each time using round-robin algorithm it picks one target.

Now the requirement is, if the target throws an error then the request will go to the next backend in the array. The target url is dynamically configured in the javascript.

Any idea how to implement that?

0 2 267
2 REPLIES 2

No. There is no way to dynamically select the URI in JS and then enable retry.

There is a retryEnabled property when load balancing across Target Server endpoints.

That might satisfy your requirement, but not in the way you imagined (dynamically selecting a URI in JavaScript).

See the documentation for more information.

Thanks for confirming. I also have the same understanding.