For this recipe, we need to perform the following steps:
- Service Locator: To begin, we need to use a remote, highly available, and scalable service locator. This will bring flexibility to the deployment strategy and will help if your service belongs to an elastic auto-scaling mechanism. Good technologies for this purpose are Apache Zookeeper (https://zookeeper.apache.org) or HashiCorp Consul (https://consul.io). Jonas Bonér, CTO of Lightbend, has shared some code to use both technologies as service locator of your Lagom application on his GitHub account. You can find the code at https://github.com/jboner?tab=repositories.
- Packaging: Secondly, we need to decide how to package and run our application. Sbt provides a useful ...