? regarding Executing/Spawning Ruby calls in parallel

V

Venks

Hi,

I have "X" number of databases running and I need to send a query
request to the "X" number of servers and I want to do this in
asynchronous fashion. Meaning I want to fire off the query to each
server without any inter-dependencies.

Of course, I need to wait until all the requests to each server is
completed but the idea here is to fire-off the queries to each server
and not worry about any sharing. I tried Ruby threads but it doesn't
perform well and I think it's because of green threads.

Any ideas on how I can implement this requirement? I am not too
familiar with fork or pipes but just wondering if there are any such
techniques that I can use to accomplish this.

Thanks,

-Venks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top