gRPC Java Client Side Load Balancer for Consul.

599 views
Skip to first unread message

myki...@gmail.com

unread,
Jan 13, 2018, 9:50:14 PM1/13/18
to grpc.io
Hi,

I have implemented gRPC java client-side load balancer for consul:
https://github.com/mykidong/grpc-java-load-balancer-using-consul

It can be used with consul or with static service node list.

thank you.

- Kidong Lee.

Eric Anderson

unread,
Jan 18, 2018, 4:00:05 PM1/18/18
to myki...@gmail.com, grpc.io
Ah, nice!

It looks like it needs to be configured before each use. You may be interested in issue 3644 which would let you do some configuration (e.g., provide consul address) before registration. The hope would be that you wouldn't need the user to call ManagedChannelBuilder.nameResolverFactory() for each channel. There is also some work being done now which would eventually allow a name resolver to choose the load balancer, via service config.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/e72bddec-fed9-494d-9d40-2972f8f49f4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

andreas....@gmail.com

unread,
Jan 18, 2018, 4:29:35 PM1/18/18
to grpc.io
I’ve made another one: https://github.com/gutro/grpc-consul
Reply all
Reply to author
Forward
0 new messages