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. |
Beta Was this translation helpful? Give feedback.
-
Let's say we need to listen to 80 and 443 for http and https, how can I do that? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Thanks, it is working. May I ask, should I use cluster or multi_thread? Which one is more performant? |
Beta Was this translation helpful? Give feedback.
-
They should have identical perf. My persoanl preferrence is WorkerThreads becaue, technically, it should be lower resource usage but in practise probably the same. |
Beta Was this translation helpful? Give feedback.
-
In this example, how can I listen to multiple ports?
Beta Was this translation helpful? Give feedback.
All reactions