On Tue, Aug 9, 2016 at 5:58 PM, Pradeep Singh <[email protected]> wrote:

> If I take this example with any Service Discovery solution out there, this
> is what I understand.
>
> 1. I get list of IPs for a Service A via Service Discovery Agent.
> 2. I connect to all of them via  gRPC channels.
> 3. Who load balances now when I send a message??? Client?
> Or do I connect to all IPs via same channel handle?(Just like zmq)
>

It varies a little by implementation but generally you just implement the
name-resolution part. E.g. in Java

https://github.com/grpc/grpc-java/blob/56a2938830eb2c00f4f010318bdc56ca3af7263d/core/src/main/java/io/grpc/internal/DnsNameResolver.java

and GRPC channels will use the resolved IPs under the hood. I guess this is
similar to what zmq does


>
> If I have to write my own client side load balancing on my own, it kind of
> makes it cumbersome I guess.
>
> Thanks,
>      --Pradeep
>
>
> On Tue, Aug 9, 2016 at 5:33 PM, Louis Ryan <[email protected]> wrote:
>
>> First take a look at
>>
>> https://github.com/grpc/grpc/blob/master/doc/load-balancing.md
>>
>> GRPC also supports the ability to plug-in your service discovery
>> mechanism of choice which can then be used for client-side load-balancing.
>>
>> On Tue, Aug 9, 2016 at 10:51 AM, <[email protected]> wrote:
>>
>>> Hi
>>>
>>> While going through gRPC goals on grpc.io I noticed it mentions Load
>>> balancing as one of its design principles or Goals.
>>>
>>> But I did not find anything which suggests the same.
>>>
>>> Saw one of the gRPC Demos by Sameer Ajmani on Youtube and he appears to
>>> be running some kind of a Server Proxy(some yaml file suggested this).I may
>>> be wrong.
>>>
>>> So, my question is how is this Load Balancing goal achieved by gRPC if I
>>> have to use a TCP or HTTP Load balancer Proxy to achieve this?
>>>
>>> As I understands gRPC server stubs need to run on each and every System
>>> providing the Service(s), but what does client need to do if Servers are
>>> not behind a Proxy?
>>>
>>> As I understand gRPC does not have a Service Discovery mechanism, hence
>>> the confusion.
>>>
>>> Could someone please point me to the right direction?
>>>
>>> PS:- I am a newbie to gRPC, pardon my ignorance. Would appreciate if
>>> someone can CMIIW.
>>>
>>> Thanks,
>>>
>>> --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/grpc-io/78cb7ddc-282a-4df2-8e0b-5d60cbd7df71%40googlegroups.com
>>> <https://groups.google.com/d/msgid/grpc-io/78cb7ddc-282a-4df2-8e0b-5d60cbd7df71%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>
>
> --
> Pradeep Singh
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CADQ0XY3toesdaX%2B9TFbm0pzQpTj7Q-vhxey6N8YhcxneXi_Fiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to