Fastest HTTP client (for persisten connections)

Ok, there are so many HTTP client gems!

Premise: I need to have support for persistent connection too.

For many time I used rest_client, realizing now is one of more slow :frowning:

Many people use HTTPparty (with some “patches” behind the scenes, to
manage long polling persistent connections), see by application example,
the good project:
https://github.com/atipugin/telegram-bot-ruby

My goal is to choose a gem to manage HTTP persistent connections that
is both FAST in performances and also simple/intuitive to use.

In terms of performances of course curb (libcurl based) win, see this
benchmark (2014):
http://reevoo.github.io/blog/2014/09/12/http-shooting-party/

Maybe Patron could be a curb substitute for a compromise between
performances and good progarmming interface.

See also a old benchmark (2012):
https://bibwild.wordpress.com/2012/04/30/ruby-http-performance-shootout-redux/

Another possible winner because fast&simple to use could be HTTPrb gem:
https://github.com/httprb/http

What your opinion/choice?
Anyone here maybe did any benchmark recently ?

thanks
giorgio

I’ve also been frustrated by how many options there are. I’ve been using
httprb with success but I often find myself having to dig deep into the
code to figure out how to e.g. inspect the response body or attach query
string parameters to a GET request. It definitely makes me miss LWP and
its associated documentation. :slight_smile:

https://github.com/markets/awesome-ruby#http

Hi Mike
I presume that for LWP you maybe mean the Perl module
http://stackoverflow.com/questions/8274221/is-there-a-module-like-perls-lwp-for-ruby

I see your points and I confess I never yet used httrb.
Reading httprb github pages, interface seems more handy (the “chaining
way”) in comparison with fastest curb (https://github.com/taf2/curb),
but maybe just not too documented or me ignorant about curl parameters
:slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs