Repository navigation
Connection pool clarification #1699
Replies: 1 comment
|
With the default transport, I checked this with HTTPX 0.28.1 using two local servers on different ports: with For many endpoints, reuse one client and set resource limits and the pool timeout for your workload. If you want to limit concurrent tasks rather than connections, use an |
Uh oh!
There was an error while loading. Please reload this page.
Greetings!
Pardon my inexperience in the matter, but I have a question regarding connection pools and their inner workings.
Let's have the context here be making single requests to many different endpoints, rather than multiple requests to the same one.
About the max_connections AsyncClient parameter, does it regulate how many concurrent connections can be active with the same endpoint or how many requests to different endpoints can be sent at once? What's the best practice for concurrent connections in the context of requesting from a large number of different endpoints?
How does that differ in a sync Client context?
All reactions