Overview of the service design
We are going to implement a multilayered architecture that comprises four layers – the presentation layer, application layer, domain layer, and infrastructure layer. Multilayered architecture is a fundamental building block in the architecture style known as Domain-Driven Design (DDD). Let's have a brief look at each of these layers:
- Presentation layer: This layer represents the User Interface (UI). In the upcoming Chapter 7, Designing a User Interface, we'll develop the UI for our e-commerce app.
- Application layer: The application layer contains the application logic and maintains and coordinates the overall flow of the application. Just to remind you, it only contains the application logic and not the business logic. RESTful web services, async APIs, gRPC APIs, and GraphQL APIs are a part of this layer.
We already covered the REST API interfaces and controllers (implementing REST API interfaces) in Chapter 3, API Specifications...