While the Catalog.API project handles the catalog items of our store, we don't have anything that handles the cart features. In this section, we will discover a new .NET Core solution that implements a cart service to do this for us. Furthermore, we will introduce a new implementation approach: the mediator pattern. Before we walk through the implementation of this new service, let's take a look at an overview of the project structure, which provides the catalog service and cart service solutions:
The preceding schema describes the project structure of the catalog service and the cart service. As we already know, the catalog service implements the API, Domain, and Infrastructure projects in order to separate the different layers of the implementation and that it uses SQL Server, combined with Entity Framework Core, as the main data...