# Initiating a GET request in parrelel w/o waiting for respons

**URL:** <https://www.ruby-forum.com/t/initiating-a-get-request-in-parrelel-w-o-waiting-for-respons/119442>\
**Category:** Rails\
**Created:** [November 7, 2007, 1:32am UTC](https://www.ruby-forum.com/t/initiating-a-get-request-in-parrelel-w-o-waiting-for-respons/119442 "2007-11-07T01:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [November 7, 2007, 1:32am UTC](https://www.ruby-forum.com/t/initiating-a-get-request-in-parrelel-w-o-waiting-for-respons/119442/1 "2007-11-07T01:32:34Z")

</div>

I have an external image processing server and I would like to get that  
action going inline with an action on my current server.

How do I initiate a GET request and not care for the response, so that  
it doesnt halt my action. I understand its flaky in that I don’t know if  
the action completed successfully, but speed is very important here, and  
they have to be inline.

I know I could venture into threading, but I’ve heard bad things about  
that boat. Maybe there is something along the lines of calling a `curl (url)` where curl doesnt care about the response or it gets threaded  
out?

Anyone have suggestions?

PS I accidentally posted this on Rails Deployment. Sorry for that.

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [November 7, 2007, 1:51am UTC](https://www.ruby-forum.com/t/initiating-a-get-request-in-parrelel-w-o-waiting-for-respons/119442/2 "2007-11-07T01:51:57Z")

</div>

On Nov 6, 2007 7:32 PM, Aryk G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I know I could venture into threading, but I’ve heard bad things about  
> that boat. Maybe there is something along the lines of calling a `curl (url)` where curl doesnt care about the response or it gets threaded  
> out?
> 
> Anyone have suggestions?

Have you looked at backgroundrb at all? Sounds like it might fit the  
bill  
for your problem.

[http://backgroundrb.rubyforge.org](http://backgroundrb.rubyforge.org)

Michael G.

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [November 7, 2007, 2:35am UTC](https://www.ruby-forum.com/t/initiating-a-get-request-in-parrelel-w-o-waiting-for-respons/119442/3 "2007-11-07T02:35:13Z")

</div>

You might want to look into AP4R (Asynchronous Processing for Ruby).  
They presented at RubyConf and it seems like it might fit the bill for  
what you’re trying to do.

[http://rubyforge.org/projects/ap4r/](http://rubyforge.org/projects/ap4r/)

Michael B.  
removed\_email\_address@domain.invalid
