Closed ignasi35 closed 4 years ago
This PR is also useful to verify there's no restriction wrt the remote name when consuming gRPC services. Originally, the gRPC client was restricted to using gRPC-idiomatic names when looking up the remote server. This PR looks up by the Lagom name and, when the endpoint is found, the regular Channel
is built.
NOT FOR MERGE
This PR makes the minimal changes on
grpc-example-scala
so everything runs without relying onunmanagedServices
in Lagom's DevMode. There are two steps required:localhost
address (instead of the default127.0.0.1
to pass al SSL Certificate validations)"hello-srvc"
name. This operation may fail but eventually succeeds. The reason is that the internalChannel
may be built before thehello-srvc
is available in which case build fails. TheChannel
creation is eventually retried.PS: I've done this on
1.5.x
because1.6.x
is affected by https://github.com/akka/akka-grpc/issues/731.