This repository was archived by the owner on Feb 21, 2023. It is now read-only.
Confusing about how to create connection pools #1346
Unanswered
GoodManWEN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I can see two types of creating connection pool's code in the Migration to 2.0 section of the documentation.
One of them says I can create a connection pool like this:
The other one says I should use
ConnectionPool
This is confusing, if I want to create multiple client-to-server links and share them with connection pooling in multiple aio "threads", then whats the correct way to do so?
Also again, if I do share a connection pool between multiple system threads, is it thread-safe? Thx!
Beta Was this translation helpful? Give feedback.
All reactions