Multi threaded safe? #3116
Unanswered
conormdowney
asked this question in
Q&A
Replies: 1 comment
-
Yes using diesel is safe in multithreaded apps. That's not explicitly documented as that's something that rust guarantees by default. You likely want to use a database pool in such an environment. Checkout r2d2 and diesels r2d2 integration for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cant seem to see it mentioned anywhere but is diesel safe to use in a multi threaded app? If I create a single connection can that be cloned to threads and used by multiple?
Beta Was this translation helpful? Give feedback.
All reactions