grpc client calls multiple servers

74 views
Skip to first unread message

Anniver

unread,
Dec 16, 2021, 10:59:37 AM12/16/21
to grpc.io
Hi all.
I have several servers (for example, foo.abc.com:5000, boo.abc.com:5001). I need to set up client-side load  balancing. I've read the documentation, but I don't understand how to specify multiple servers if DnsNameResolverProvider is used. How do I specify servers in forTarget()?
I am using java and here is the code where I have problem
ManagedChannel channel = NettyChannelBuilder
.forTarget(?)
Reply all
Reply to author
Forward
0 new messages