Hi All,

I use below snippet for load balanced grpc client.

EurekaClientConfig eurekaClientConfig = new DefaultEurekaClientConfig();
ManagedChannel channel =  ManagedChannelBuilder
               .forTarget("eureka://" + 
"service-aeroline-passenger-messaging")                
                .nameResolverFactory(new 
EurekaNameResolverProvider(eurekaClientConfig, "9071"))
                
.loadBalancerFactory(RoundRobinLoadBalancerFactory.getInstance())
                .usePlaintext(true)
                .build();

It seems .forTarget url is wrongly stated.I have put 
"eureka://serviceappname" .Can somebody point out whats the correct target 
url to put when Eureka is used as discovery server?

Thanks,
Isuur

-- 
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/d0528542-7c26-4ab8-aa42-eb5674f91baa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to