Skip to content

How to best launch multiple servers? #586

Answered by fafhrd91
cerst asked this question in Q&A
Discussion options

You must be logged in to vote

there are two options:

  1. bind different ports to different applications. this approach uses one set of workers and all workers handles traffic for all ports. for this option use server builder. here is example
  2. second option is what you trying to use. in that case you should have two set of workers (worker per thread). you can use join or any other future combinator (ie futures crate)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cerst
Comment options

Answer selected by cerst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants