Creating a library to create HTTP requests
With a microservices team, a good practice is when the team is not only responsible to develop the complete service including the database access code, but also at least one of the client applications. With traditional development teams, client and server development is often spread across different teams. The issue with that is that the client and service are best created in collaboration. Creating the client, you’ll find answers missing from the services API. Here, a fast communication between the client and service developers helps.
Creating a library for the client allows us to reuse this functionality from all .NET clients; you can create clients with any .NET client technology, such as Blazor, WinUI, .NET MAUI, and others. In this chapter, we will just create a console application, but you can find clients using Blazor, WinUI, .NET MAUI, WPF, and Platform Uno in the GitHub organization at https://github.com/codebreakerapp.
...