Should a connection be shared between request handlers? #1962
Unanswered
SantaClaas
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.
-
I am writing a web server with Axum in Rust and I am wondering if each request that is handled should create it's own (remote) connection or if a connection should be shared between handlers through a nAxum state struct. The official examples I have looked at seem to create a connection in each request handler but I have not found any documentation regarding this.
Beta Was this translation helpful? Give feedback.
All reactions