Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Load balancing through javascript callout

Not applicable

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.

2 3 189
3 REPLIES 3