How to call rest service using load balancer from Outsystem UI

Hi All,

Currently ,I am  calling  rest service  by using  connector(which is created  by  me) by  providing  url & token in   service center.But,I am  facing  some  issue  when  the  rest  service  is  down.How  can I implement  load balancing  when  calling  to  rest service from Outsystem UI.



Regards,

Kallol

You can customize the outgoing request using OnBeforeRequest handler: https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/REST/Consume_REST_APIs/Simple_Customizations

In that you can also change the URL. With some logic you can create a round-robin type of load-balancing there. You'll need to save state somewhere on which URL was called earlier via BaseURL.

Alternatively, these things are usually handled at the infrastructure level on the receiving end, like an AWS ELB or F5 load-balancer.