Server listening to multiple ports? #11646
-
| Working on something where mulitple clients are sending grpc commands to a server, and I'm thinking the solution would be having the server listen to multiple ports and have each client connect through a different port. I saw #5067 and it seems like grpc for Java supports multiple ports but I could not find any documentation anywhere; could someone point me to the right place or provide an example? |
Beta Was this translation helpful? Give feedback.
Answered by ejona86 Oct 28, 2024
Replies: 1 comment
-
| Generally the approach is "start multiple Servers." There's pretty low cost to doing so. To do was added in 5067, you'd use NettyServerBuilder.addListenAddress(). It has limitations like "not being able to change ports once started." |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by evesdropper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Generally the approach is "start multiple Servers." There's pretty low cost to doing so.
To do was added in 5067, you'd use NettyServerBuilder.addListenAddress(). It has limitations like "not being able to change ports once started."