Replies: 1 comment 1 reply
-
I can't imagine the situation such this can happen in normal application. I'd say it's a problem with architecture if it happens. If this is the only solution I'd do this one of this depending on specific situation, possibility of architecture change and other parameters:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
I would like to limit the number of simultaneously used connections per request on my pool in my ASGI app.
Ideally, I would avoid opening and closing a connection pool at each request for performances reason.
To do so, I guess I should be using a context vars.
Would you be so kind as to point me in the right direction to implement such a logic ?
Here is a little script to help off the discussion:
Beta Was this translation helpful? Give feedback.
All reactions