I am working to deploy a simple Lagom System of Microservices into an externally hosted cloud. Each microservice will be its own DockerImage. Each microservice is declared to the hosting service, and is given a deterministic “hostname” (app.service.project) which is resolve-able only from within the deployed cloud. These names remain the same across otherwise-distinct “environments”.
Now, when using runAll goals, a ServiceLocator and ServiceGateway are started. I have seen docs which would enable me to disable these.
My question is how I map hostnames to services such that one Lagom microservice may resolve and invoke another Lagom microservice in the same project. For example, do I need to use a specific ServiceLocator which resolves via DNS?
At this stage the services we are deploying are the well-known Hello-Impl and Stream-Impl, so feel free to answer in those terms.
My project name is “example”, I may ascribe the service name “lagom” to each microservice, so Hello would be rsolvable as hello.lagom.example, and Stream as stream.lagom.example.
Kind regards, Robin.