Deploying and Managing Your WebAPI in the Cloud
In this chapter, we’ll explore practical recipes for leveraging .NET in the cloud. We will start off by working with the Azure CLI and enhancing our APIs with external Azure services. We will build an API using an external Azure service (Azure Maps) and learn to manage configurations in Key Vault so our API can have access to secrets securely once it has been deployed.
We will then learn how to create a custom API gateway using Yet Another Reverse Proxy (YARP). This gateway setup enables powerful routing and load balancing with distributed systems and servers as a simple alternative to over-complicated microservices. By leveraging YARP’s customization, we will achieve a flexible gateway that can handle traffic efficiently. We will also explore creating custom load-balancing policies in YARP.
For the rest of this chapter, we will focus on .NET Aspire. .NET Aspire is quickly becoming the preferred way to orchestrate...