Is it possible to execute a REST API call in parallel?

Hi,

In my application, we configured a Connect-REST API with POST method. This method we are using to get Quoting details from external data base.

Currently, we are calling this API in sequence, means for 5 records we are calling the same API 5 times. However, in the store procedure, it takes 1 minute for each record, resulting in 5 minutes for 5 records.

I want to reduce the time to less than 2 minutes for 5 quotes. Therefore, I’m checking if there is any possibility to call the same API with 5 different sets of parameters at the same time in parallel.

Kindly suggest.

@HariBadana

Yes you can. But the ideal long term solution would be to co ordinate with the external service team to modify the service to accept multiple inputs in one call and return all the results.

Temporarily you can use this approach, but with few cautions. Please refer the below link.