-
I want to launch two servers, a public one for serving the regular traffic and a private one for serving metrics, health checks etc. The goal is restricting access as well as making sure that e.g. health checks aren't stuck in traffic. As of now, my approach is basically this: ntex::util::select(
HttpServer::new(...).bind(...).run(), // public
HttpServer::new(...).workers(1).bind(...).run(), // private
)
.await
:into_inner() Q1) Is there a better (more efficient, ...) way to set up the two servers? |
Beta Was this translation helpful? Give feedback.
Answered by
fafhrd91
Jun 3, 2025
Replies: 1 comment 1 reply
-
there are two options:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cerst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there are two options: