The golang code is straightforward and somewhat documented so I actually 
have that part working just fine. I'm specifically looking for how to do 
that with node.js (or at least C++ as node.js is using that under the 
covers); I can't find any examples and the docs are about broad concepts 
but no information on how to actually pass those around to the node.js 
classes.

Thanks,
\Peter

On Wednesday, June 7, 2017 at 10:17:14 PM UTC-6, Nice Robot wrote:
>
> Is this what you want : 
> https://github.com/bsm/grpclb/blob/master/cmd/grpc-lb-client/main.go
>
> On Sunday, May 21, 2017 at 9:44:37 PM UTC-7, [email protected] 
> wrote:
>>
>> Hi,
>>
>> Sorry to resurrect a somewhat old thread but it seemed the most logical 
>> place to ask this question: are there samples of setting up a client to use 
>> LB in various languages, specifically node.js? I believe its supported, but 
>> I can't figure out where I'm supposed to even start out at. It'd be nice to 
>> see a client that uses a naming resolver and load balancer, and perhaps a 
>> sample of writing one's own naming resolver and load balancer.
>>
>> Thanks,
>> \Peter
>>
>> On Tuesday, August 9, 2016 at 7:19:54 PM UTC-6, Louis Ryan wrote:
>>>
>>>
>>>
>>> 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/msgid/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].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/8ac5689c-c1e7-421c-8507-6de2edf1b364%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to