You can find gRPC Python documentation here:
https://grpc.github.io/grpc/python/ and a basic tutorial here:
https://grpc.io/docs/languages/python/.

[+Richard Belleville, +Lidi Zheng <li...@google.com>] for specific load
balancing API in Python.

On Fri, Jan 28, 2022 at 4:52 AM animesh sharma <
animesh.sharma.pand...@gmail.com> wrote:

> 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
> <https://groups.google.com/d/msgid/grpc-io/4ce5e1e3-46cb-482a-829c-6e5c518e6762n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CANuxmaLLV36mkaGEBP9HLNOnfeP1YroV6pmjfN_SSKjg4xxm-g%40mail.gmail.com.

Reply via email to