Maximum parallel async events or requests #5874
Unanswered
kaustubh-d
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't know the exact details, but "async events" is probably limited only by the amount of RAM you have (I'm not sure there's any reason for asyncio to try and restrict this). Number of connections in aiohttp, according to the documentation, defaults to 100: So, once 100 connections are open and actively being used, other requests will wait until a connection is freed and added back into the pool (I imagine this is implemented as a queue, rather than semaphores). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Is there a limit on Maximum async events or requests that can be raised or handled in aiohttp based application? There are few suggestions online to use semaphore for controlling number of simultaneous requests, but what would be recommended count, what is maximum number for simultaneous async events?
Beta Was this translation helpful? Give feedback.
All reactions