ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
options for running code in parallel
by Martin DeMello other posts by this author
Jul 1 2008 10:55AM messages near this date
Re: Using hpricot to get tables | Re: options for running code in parallel
Our testing department wants a small tool that can make a number of
http calls simultaneously to the same server, the basic logic being

# -----------------------------------------------------------------
calls = ["call1"..."calln"].map {|x| "http://server/#{x}"}

calls.each do |x|
  OnSignal(START) do
    http_send call(x)
    log_result
  end
end

SendSignal(START)
# -----------------------------------------------------------------

What are the options for doing this cleanly and robustly? I haven't
been keeping up with the recent work people have been doing on
distributed/parallel code in ruby, but I get the general impression
there's been a lot of activity in this area.

martin
Thread:
Martin DeMello
Ara.T.Howard
Martin DeMello
Ara.T.Howard
Igal Koshevoy

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved