Even though this basic Lagom HelloWorld System looks very simple, we can learn many Lagom concepts. Let's pick up each service and understand the code.
It mainly has two services (microservices):
- Hello Lagom service
- Hello Lagom Stream service
Again, each microservice has two parts: one is for the API and another for the implementation.
The Hello (hello) Microservice has the following two parts:
- Hello API service (hello-lagom-api)
- Hello implementation service (hello-lagom-impl)
In the same way, the Hello Stream (hello-lagom-stream) microservice has two parts:
- Hello Stream API service (hello-lagom-stream-api)
- Hello Stream implementation service (hello-lagom-stream-impl)
The whole HelloWorld System looks like the following in the IntelliJ IDE:
It's time to understand the code in both the API and the implementation projects...