December 2019
Intermediate to advanced
510 pages
11h 33m
English
Let's look at how we can incorporate Polly.NET into the cart service. As we saw previously, our use case uses the catalog service to gather detailed information about the items in the user's cart and return them to the client. Furthermore, we will implement CircuitBreakerPolicy on ICatalogClient. CircuitBreakerPolicy follows the failing fast approach, which means that, even if the response of the catalog service doesn't arrive, the runtime continues with the execution of the application.
Before starting, let's add some Polly.NET packages to the Cart.Infrastructure project by using the add package command in the project folder:
dotnet add package Polly
Let's proceed by creating some policies for ICatalogClient ...
Read now
Unlock full access