gRPC load balancer in java

95 views
Skip to first unread message

abhinay...@gmail.com

unread,
Feb 1, 2017, 10:19:58 PM2/1/17
to grpc.io
Trying to implement load balancer in gRPC client in JAVA, not sure how to implement. Can anyone help me out?

I have been using managedChannel.forAddress("")...If I use load balancer where should I provide multiple server addresses?

Kun Zhang

unread,
Feb 2, 2017, 12:20:20 PM2/2/17
to grpc.io, abhinay...@gmail.com
You will need to stop using forAddress() and switch to forTarget().

The target string is resolved by NameResolver, which may emit multiple addresses. See my reply on the other thread.
Reply all
Reply to author
Forward
0 new messages