tenderlove / ds9

Wrapper around nghttp2
80 stars 13 forks source link

Comparison to pure Ruby HTTP/2 client. #1

Open alloy opened 8 years ago

alloy commented 8 years ago

I’m wondering if you could shed some light on your motivation to wrap a C lib over using a pure Ruby implementation such as https://github.com/igrigorik/http-2? If a motivation was speed, did it indeed turn out to be more performant and do you have any benchmark numbers on that?

tenderlove commented 8 years ago

The main reasons are:

  1. At the time I wrote this, the pure Ruby version wasn't up to date with the h2 spec and I didn't want to fix it
  2. h2o (the most popular http2 server AFAIK) uses the same code for it's back end so it's battle tested in production and should stay up to date.

I haven't done any perf comparisons yet.

ioquatix commented 7 years ago

Do you support both client and server? or only client?

tenderlove commented 7 years ago

@ioquatix both client and server. The tests use the client to test the server. 😊

ioquatix commented 7 years ago

Nice - have you used this in production?

tenderlove commented 7 years ago

Not for real apps. So far I've only used H2 proxies in production for real apps.