Overview of the service design
We are going to implement a multi-layered architecture that comprises four layers – the presentation layer, application layer, domain layer, and infrastructure layer. Multi-layered 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 Chapter 7, Designing a User Interface, you’ll develop the UI for a sample 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 REST APIs and controllers in Chapter 3, API Specifications and Implementation, which are part...