In the previous section, we created a simple web API and learned that the API is the edge of our application. The edge talks with the outside world and accepts requests via HTTP or another communication protocol. To execute these requests, we need an application service that works as an intermediary between edge components and the domain model. The application service is also responsible for persisting entities.
Going forward, we will learn more about handling commands and persistence. Also, we will discuss handling exceptions and checking whether incoming requests are valid.