Multiple calls to the webservice

Asked

Viewed 60 times

1

I would like to know the best way to make N calls to the same Webservice.

Ex.: In a search system / hotel quotation, as a strategy, we use N calls for a specific quote because in each call is sent a different Commercial Agreement, then is displayed the best price based on all response requests.

In the current scenario, we have an average of 20 requests per quotation, however it is very slow due to one call being made after another, always waiting for the return to proceed.

I thought of using Threads to make all calls in parallel and theoretically the total time will be about the time of a call, taking into account that all will be fired at the same time.

Would you like to know how best to handle this situation, Thread would be the solution? If so, is there any strategy for this? Otherwise, what would be the best way?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.