I have an application that makes several slow http calls on certain inbound API requests and I’d like those to run in parallel because there are several and they are slow.
For a thread pool, I’ve previously used http://burgestrand.se/articles/quick-and-simple-ruby-thread-pool.html.
Are there any architecturally sound solutions for running this in parallel, with or without a thread pool?
Edit
My apologies, I was watching a movie while typing this up and wrote “serial” in the places where I have italicized “parallel”. Thanks to @Catnapper for the catch. How embarassing
For good leads try Sidekiq:
http://mperham.github.com/sidekiq/
And Celluloid:
http://www.unlimitednovelty.com/2011/05/introducing-celluloid-concurrent-object.html