May 2017
Intermediate to advanced
414 pages
13h
English
In an environment full of dynamic components, it is important to have a registry where services can register themselves and discover other services at runtime. This registry needs to maintain an updated list of available services. The ServiceLocator is the API that Lagom provides as the query mechanism to achieve these tasks. The actual implementation behind the ServiceLocator API can be chosen depending on the use case. There are plenty of technologies that provide Service Registry capabilities, such as Apache Zookeeper, Consul, or ConductR.
When running Lagom in development, the framework provides an in-memory service locator where all services get registered when we run sbt runAll. Although this might ...
Read now
Unlock full access