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
It's been reported that every time an Http is constructed, we get 2*$numCpus threads created by AHC because we create an AHC client on each invocation. Some things to look at:
One option that's been suggested is to share an AHC client instance under the hood, which is thread-safe "with qualification" - specifically so long as you don't do anything not-thread-safe in your callbacks. The with qualification bit is what scares me about that.
Perhaps a more targeted approach is to expose or better document a knob for the number of threads that we should allocate when we build the client.
The text was updated successfully, but these errors were encountered:
It's been reported that every time an
Http
is constructed, we get 2*$numCpus threads created by AHC because we create an AHC client on each invocation. Some things to look at:The text was updated successfully, but these errors were encountered: