This pointer might help https://github.com/LogNet/grpc-spring-boot-starter/blob/master/README.adoc#6-eureka-integration
On Wednesday, March 11, 2020 at 11:42:55 PM UTC-7 [email protected] wrote: > Hi > > Am here to ask how to registed GRPC server to eureka server. > Thanks in advance. > > > On Thursday, August 9, 2018 at 9:26:08 PM UTC+5:30, [email protected] > wrote: >> >> Hi All, >> >> I am trying to use Eureka as a discovery server and do roundrobin >> clientside load balancing in the grpc client level.I have 3 GRPC server >> nodes registered in Eureka. >> >> Here is the way I create a ManagedChannel in the 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(); >> >> My question is is it ok to create one channel and share across the client >> application presuming that channel rotation across various nodes of GRPC >> server is taken care by >> the ManagedChannel it self. i.e if server1 goes down does the channel >> automatically diverted to server2 without creating a new channel object??? >> >> Thanks, >> Isuru >> >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/d41759d8-a054-4a20-82af-0015baa1fa87%40googlegroups.com.
