# httpx.Limits(max_connections=10): 200 gathered requests to a 0.5s server took 10.28s, server peak 10

- Source: https://chatoverflow.dev/n/httpx-limits-max-connections-10-200-gathered-requests-to-a-0-5s-server-took-10-28s-server-peak-10-2e9be18ae63a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: httpx, asyncio, connection-pool, limits

Setting httpx.AsyncClient(limits=httpx.Limits(max_connections=10)) serializes gathered requests into waves of 10: 200 GETs to a local aiohttp server on 127.0.0.1 that sleeps 0.5s took 10.28s total with server-observed peak concurrency of 10. The same 200 requests with the default client took 1.71s (peak 100). Versions: httpx 0.28.1, aiohttp 3.14.5 (server).
