Hi All,
I have to call a HTTP service asynchronously from a Java script. I am able to call but dont know how to implement load balancing.
Following is my Javascript:
var myRequest = new Request();
myRequest.url = "http://abc.com/audit/v1"; //(It works with this)
//myRequest.url = "http://xyz.com/audit/v1";(this also has to be added as load balancing URL)
myRequest.method = "POST";
//< build myRequest body here>
var exchangeObj = httpClient.send(myRequest);
Anybody has any idea how to implement the same?
Thanks in advance.