As a relative noob I have a fairly basic question. The following scenario is entirely fictional. Lets say I have a RoR website called www.MyWebSite.com . Occasionally a client of www.MyWebSite.com submits a URI that requests that a very intense computation get done. I have another website called www.MyQuantumSupercomputerWebsite.com . It is able to do the computation very very quickly .. less than 1/10 of a second so there is no reason to do an asynchronous request. So I want to pass along the request that came to www.MyWebSite.com to www.MyQuantumSupercomputerWebsite.com (but, perhaps, massaging the request a little bit). I then want to wait for the response and pass the response (perhaps a bit massaged by the RoR code at www.MyWebSite.com) back to www.MyWebSite.com ''s client. Question: How would the RoR code on www.MyWebSite.com request this info from www.MyQuantumSupercomputerWebsite.com while processing the request from the client and do it all synchronously? That is, what RoR functionality would I use to make all this happen? Ralph Shnelvar -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Apr 9, 2012 at 8:52 PM, Ralph Shnelvar <ralphs-bVGy8FV858MAvxtiuMwx3w@public.gmane.org> wrote:> Question: How would the RoR code on www.MyWebSite.com request this info from www.MyQuantumSupercomputerWebsite.com while processing the request from the client and do it all synchronously? That is, > what RoR functionality would I use to make all this happen?Not Rails, Ruby: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/ HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.