Topic: Calling Multiple Restsful webservices


I am dashboard page where i am displaying lot of information. For each information, it gets connect to different server and get the data. I feel because of which this page is loading very slow.

Is there any way that i call all these restsful API at the same time (considering all api will give different output).

Ashok Naidu

Re: Calling Multiple Restsful webservices

It will increase your code complexity, but you can spawn a thread for each webservice fetch.  There are a few gems/plugins out there for threading.. we use the spawn plugin for our background processing.

How long is the page taking to load and how many web services are you calling?

Last edited by ehud93 (2011-09-22 18:12:46)

Play postseason fantasy sports at Fantasy Postseason - Written in RoR