Aryk Grosz
2007-Nov-07 00:32 UTC
Initiating a GET request in parrelel w/o waiting for respons
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Guterl
2007-Nov-07 00:51 UTC
Re: Initiating a GET request in parrelel w/o waiting for respons
On Nov 6, 2007 7:32 PM, Aryk Grosz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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? >Have you looked at backgroundrb at all? Sounds like it might fit the bill for your problem. http://backgroundrb.rubyforge.org Michael Guterl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Bleigh
2007-Nov-07 01:34 UTC
Re: Initiating a GET request in parrelel w/o waiting for respons
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/ Michael Bleigh michael-+08J6pdAJjhWk0Htik3J/w@public.gmane.org On Nov 6, 2007, at 7:32 PM, Aryk Grosz wrote:> > 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. > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---