honeycombio / libhoney-rb

Ruby library for sending data to Honeycomb
Apache License 2.0
11 stars 30 forks source link

http connection pooling #3

Closed toshok closed 3 years ago

toshok commented 7 years ago

If http.rb (https://github.com/httprb/http) supports persistent http connections, it's likely worth it to reuse connections for sending events to the same server.

Since the api_host can vary from event to event, we'll need to be able to keep several connections around. Also, it's probably going to be insanely uncommon for api_host to vary at all, so we'll need to support multiple connections to the same host, probably per-thread.

robbkidd commented 3 years ago

Overcome by events. libhoney-rb replaced http.rb with Excon for HTTP connections which are also now persistent and managed per API host.