Ruby on Rails Tuesday, January 4, 2011

Tony Primerano wrote in post #972234:
> In the past I have used Net::HTTP to call trivial remote services.
> These calls have been low frequency so didn't bother looking into
> alternatives.
>
> I'm now looking at a design where I will be calling a remote service
> that returns a simple CSV but it will be called frequently and if that
> service goes down I need to degrade gracefully. I'd like to punt if
> the web service fails to respond in 1 second (500 ms may be better).
>
>
> Is there a library that makes this simple. Seems like some hackery is
> needed to make this happen with Net::HTTP
> ex:
> http://groups.google.com/group/chicagoruby/browse_thread/thread/8b8aadc26545e165
>
> It seems like there are 100s of ruby http libraries out there.

Would HTTParty have what you need?

>
> Tony

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

--
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@googlegroups.com.
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.

No comments:

Post a Comment