Replies: 5 comments
|
If you want to listen to multiple ports, you might as well skip that load balancing entirely and just use the fact that you have multiple ports, as a way to balance load. |
0 replies
|
Let's say we need to listen to 80 and 443 for http and https, how can I do that? |
0 replies
|
You need two apps; SSLApp and APP and you need to register the same handlers on all URL routes. And you just call listen on them with their respective port |
0 replies
|
Thanks, it is working. May I ask, should I use cluster or multi_thread? Which one is more performant? |
0 replies
|
They should have identical perf. My persoanl preferrence is WorkerThreads becaue, technically, it should be lower resource usage but in practise probably the same. |
0 replies
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.
In this example, how can I listen to multiple ports?
All reactions