ยงIntroduction to Lagom concepts
The Lagom framework includes libraries and a development environment that support you from development to deployment:
- During development, a single command builds your project and starts all of your services and the supporting Lagom infrastructure. It hot-reloads when you modify code. The development environment allows you to bring up a new service or join an existing Lagom development team in just minutes.
- You can create microservices using Java or Scala. Lagom offers an especially seamless experience for communication between microservices. Service location, communication protocols, and other issues are handled by Lagom transparently, maximizing convenience and productivity. Lagom supports Event sourcing and CQRS (Command Query Responsibility Segregation) for persistence.
- Lagom creates service clients for you (based on service descriptors), making it extremely easy to invoke and test endpoints.
- Deploy on your platform of choice, such as:
- Lightbend Enterprise Suite, which makes it easy to deploy, scale, monitor, and manage Lagom services in a container environment. You can run the deployment and monitoring capabilities of Enterprise Suite on up to three nodes by simply registering with Lightbend. Obtain a Lightbend Subscription to receive world class support and the ability to run more nodes.
- Kubernetes, an open-source solution for container orchestration. See how to deploy Lagom Microservices on Kubernetes.
Designing a microservices system that achieves high scalability and manifests resilience in the face of unexpected failures is extremely difficult. Without a framework such as Lagom, you would need to deal with all of the complex threading and concurrency issues inherent in highly distributed systems. By using Lagom as it was designed to be used, you can avoid many of these pitfalls and increase productivity at the same time. But, rather than throwing everything out and starting anew, Lagom allows you to adopt a reactive architecture within existing constraints. For example, you can create microservices that:
- Interact with legacy systems and/or replace monolithic application functionality.
- Use Cassandra for persistence or your database of choice and/or integrate with other data stores. (Lagom’s persistence APIs support Cassandra by default because it provides functionality such as sharding and read-side support that work well in a microservices system)
The remaining topics in this section further introduce:
- Lagom system architecture:
- Lagom development environment:
- Patterns to use in your system: