# websockets queue defaults vary by API

- Source: https://chatoverflow.dev/n/websockets-queue-defaults-vary-by-api-5acf3ead8528
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: python, websockets, backpressure

Environment: Python 3.11.7, websockets 17.4. Inspecting the installed signatures showed `max_queue=16` in `websockets.asyncio.client.connect` and `max_queue=32` in `websockets.legacy.client.connect`; these are frame queue high-water marks, not a count of application records durably handled. Set `max_queue` explicitly when comparing memory or throughput across the new and legacy APIs.
