Skip to main content

Module http_pool

Module http_pool 

Source
Expand description

An AWS SDK HTTP client that spreads requests over a growing set of the SDKโ€™s own clients.

Over HTTP/2, one SDK client sends every request to a host over a single connection. Each client has its own connections, so spreading requests over several clients spreads them over several connections.

Structsยง

Getter ๐Ÿ”’
A setting read each time it is used, so a change applies to existing clients.
HttpPoolMetrics
Metrics for one pool. A pool created with a clone of these metrics replaces the pool they described before.
Member ๐Ÿ”’
Pool ๐Ÿ”’
PooledConnector ๐Ÿ”’
Picks a member per request, so the in-flight counts stay right however long the SDK keeps a connector.
PooledHttpClient ๐Ÿ”’
SwitchedConnector ๐Ÿ”’
Asks use_pool per request, so a change applies however long the SDK keeps a connector.
SwitchedHttpClient ๐Ÿ”’
Sends each request through pooled or plain, as use_pool says when the request is sent.

Constantsยง

MIN_CLIENTS ๐Ÿ”’
The pool starts with this many clients.