Hi Team,

I was trying to implement client side load balancing in gRPC. I know how to 
do it in Java but not able to find appropriate document describing how to 
do the same in python, below is my Java code.
```
NameResolver.Factory nameResolverFactory = new 
MultiAddressNameResolverFactory( new InetSocketAddress("localhost", 10000), 
new InetSocketAddress("localhost", 10001), new InetSocketAddress("localhost", 
10002) ); ManagedChannel channel = ManagedChannelBuilder.forTarget("service") 
.nameResolverFactory(nameResolverFactory) .defaultLoadBalancingPolicy(
"round_robin") .usePlaintext() .build(); 

```

In python I know how to connect to one server but not a list of gRPC servers
channel = grpc.insecure_channel('localhost:10000') 

can anyone kindly guide me or point me to a document on how to implement 
the same?

Thanks,

Animesh

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/4ce5e1e3-46cb-482a-829c-6e5c518e6762n%40googlegroups.com.

Reply via email to