How it works...
In this recipe, we covered our first Lagom project. We explored how each service is structured, consisting of two different modules. First, there is a module that defines the API of the service by characterizing the descriptor method. Second, there is a module that provides the implementation for that particular API. Note that each API module can define multiple endpoints. For instance, the akkacookbook-api API module defines three different endpoints by making three calls to pathCall inside the descriptor method. Each of these path calls need to return an instance of ServiceCall[Request,Response].
The ServiceCall is the class that allows the application understand the type of the request and response for a given call. Lagom ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access