You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scenario (push service) where we need to send thousands of HTTP requests per second to the same host. We use Sidekiq to scale this workload. The problem is that every request (in a Sidekiq Job) starts a new connection, makes the request, closes the connection.
Take a connection from the connection pool and use it from a Sidekiq Job to make the request
Put back the connection in the connection pool
The connection can be reused by other Sidekiq Jobs to make other HTTP requests to the same host.
The problem, as described in the ConnectionPool readme, is this:
connections should be self-repairing.
For example if a keep alive connection is closed on the server side, this library gives errors, but does not retry / repair the connection automatically.
It would be great to have support for persistent keep-alive connections and auto healing directly in Ruby.